Guest User

Untitled

a guest
May 23rd, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. ## Log
  2.  
  3. Processing MessagesController#create (for 127.0.0.1 at 2008-11-10 11:11:49) [POST]
  4. Session ID: 3f66c805ac5a19a3e1a20779966a4006
  5. Parameters: {"commit"=>"Send", "action"=>"create", "authenticity_token"=>"b87f6985efd6c52e91092c56b2c874d1ed7d56b8", "controller"=>"messages", "conversation"=>{"deal_id"=>""}, "mail_message"=>{"to_user_id"=>"6", "subject"=>"Uff", "content"=>"trying so hard, to pay attention,", "from_user_id"=>"5"}}
  6. MailMessage Columns (0.001699) SHOW FIELDS FROM `mail_messages`
  7. SQL (0.000086) BEGIN
  8. MailMessage Create (0.000197) INSERT INTO `mail_messages` (`updated_at`, `talkable_id`, `to_user_id`, `read`, `conversation_id`, `subject`, `content`, `talkable_type`, `from_user_id`, `created_at`) VALUES('2008-11-10 16:11:49', NULL, NULL, 0, 6, NULL, NULL, NULL, NULL, '2008-11-10 16:11:49')
  9.  
  10. ## Controller
  11.  
  12. def create
  13. @message = MailMessage.new(params[:message])
  14. @message.save
  15. flash[:notice] = "Message sent successfully"
  16. redirect_to :controller => 'messages', :action => 'inbox'
  17. else
  18. redirect_to :controller => 'dashboard'
  19. end
  20. end
Add Comment
Please, Sign In to add comment