Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## Log
- Processing MessagesController#create (for 127.0.0.1 at 2008-11-10 11:11:49) [POST]
- Session ID: 3f66c805ac5a19a3e1a20779966a4006
- 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"}}
- MailMessage Columns (0.001699) SHOW FIELDS FROM `mail_messages`
- SQL (0.000086) BEGIN
- 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')
- ## Controller
- def create
- @message = MailMessage.new(params[:message])
- @message.save
- flash[:notice] = "Message sent successfully"
- redirect_to :controller => 'messages', :action => 'inbox'
- else
- redirect_to :controller => 'dashboard'
- end
- end
Add Comment
Please, Sign In to add comment