Open madeleine92 opened 10 years ago
those are my routes:
get "send_message/view_conversation" get "send_message/send" get "homepage/index"
post'/send_message/send_now/', to: 'send_message#send_now' get '/send_message/construct_message/', to: 'send_message#construct_message'
@madeleine92 your code actually insert messages inside the database. However, it doesn't specify neither the sender user nor the receiver user, which is non sense!! plz try to fix it :)
The code inserts the message inside the database but it doesnt specify the senders_id or receivers_id even when im logged in @madeleine92
@YoussefSaleh @Ahmedheshamnasser madeleine's method depend on mine. my method pass the sender id and the carrier id to madeleine's method. so when you test you should have my controller and views
@madeleine92 unfortunately your story is not working in a right way, it doesn't enter the receiver and the sender ids in the table messages, and i review it also with @rehab-arafa to do it the right way, but it did not work :( i really appreciate your work, you did great job, but u didn't handle the ids in the database!!
code verified
@hagaressam @sharkas911 @mohamed-khairy @Ahmedheshamnasser @YoussefSaleh #133