BeshoyAtef / Terasoft_14

1 stars 0 forks source link

T3 madeleine aziz saad 16 send messages #191

Open madeleine92 opened 10 years ago

madeleine92 commented 10 years ago

@hagaressam @sharkas911 @mohamed-khairy @Ahmedheshamnasser @YoussefSaleh #133

madeleine92 commented 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'

YoussefSaleh commented 10 years ago

@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 :)

Ahmedheshamnasser commented 10 years ago

The code inserts the message inside the database but it doesnt specify the senders_id or receivers_id even when im logged in @madeleine92

rehab-arafa commented 10 years ago

@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

YoussefSaleh commented 10 years ago

@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!!

sharkas911 commented 10 years ago

code verified