Ruby on Rails
Friday, September 22, 2017
On Friday, September 22, 2017 at 2:21:51 AM UTC-4, Colin Law wrote:
On 22 September 2017 at 02:29, fugee ohu <fuge...@gmail.com> wrote:
> When I send messages I see in the log that inserts made to
> mailboxer_receipts table for field receiver_id have the id of the sender
> rather than the recipient What table is supposed to hold the id of the
> recipient? Is it mailboxer_receipts?
That depends on what relationships you have setup between the models.
Colin
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to rubyonrails-ta...@googlegroups.com .
> To post to this group, send email to rubyonra...@googlegroups.com .
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rubyonrails-talk/ .81957f23-6a9a-4fe8-8bce- 4e186937c62a%40googlegroups. com
> For more options, visit https://groups.google.com/d/optout .
Processing by MessagesController#create as HTML
Parameters: {"utf8"=>"���", "authenticity_token"=>"67ksqg0yswrb3ofmlxaBLsVfRibQg/b+M2idue237qT5sn3b3mylzmcZK4O0GSQHcgoFxD6mu4JL0ZR5dkVAow==", "message"=>{"subject"=>"test", "body"=>"test", "recipients"=>"5"}, "commit"=>"Send"}
User Load (1.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 ORDER BY `users`.`id` ASC LIMIT 1
(0.3ms) BEGIN
SQL (0.6ms) INSERT INTO `mailboxer_conversations` (`subject`, `created_at`, `updated_at`) VALUES ('test', '2017-09-22 14:27:05', '2017-09-22 14:27:05')
SQL (1.8ms) INSERT INTO `mailboxer_notifications` (`type`, `body`, `subject`, `sender_type`, `sender_id`, `conversation_id`, `updated_at`, `created_at`) VALUES ('Mailboxer::Message', 'test', 'test', 'User', 1, 24, '2017-09-22 14:27:05', '2017-09-22 14:27:05')
SQL (0.6ms) INSERT INTO `mailboxer_receipts` (`receiver_type`, `receiver_id`, `notification_id`, `is_read`, `mailbox_type`, `created_at`, `updated_at`) VALUES ('User', 1, 25, 1, 'sentbox', '2017-09-22 14:27:05', '2017-09-22 14:27:05')
Parameters: {"utf8"=>"���", "authenticity_token"=>"67ksqg0yswrb3ofmlxaBLsVfRibQg/b+M2idue237qT5sn3b3mylzmcZK4O0GSQHcgoFxD6mu4JL0ZR5dkVAow==", "message"=>{"subject"=>"test", "body"=>"test", "recipients"=>"5"}, "commit"=>"Send"}
User Load (1.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 ORDER BY `users`.`id` ASC LIMIT 1
(0.3ms) BEGIN
SQL (0.6ms) INSERT INTO `mailboxer_conversations` (`subject`, `created_at`, `updated_at`) VALUES ('test', '2017-09-22 14:27:05', '2017-09-22 14:27:05')
SQL (1.8ms) INSERT INTO `mailboxer_notifications` (`type`, `body`, `subject`, `sender_type`, `sender_id`, `conversation_id`, `updated_at`, `created_at`) VALUES ('Mailboxer::Message', 'test', 'test', 'User', 1, 24, '2017-09-22 14:27:05', '2017-09-22 14:27:05')
SQL (0.6ms) INSERT INTO `mailboxer_receipts` (`receiver_type`, `receiver_id`, `notification_id`, `is_read`, `mailbox_type`, `created_at`, `updated_at`) VALUES ('User', 1, 25, 1, 'sentbox', '2017-09-22 14:27:05', '2017-09-22 14:27:05')
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/336174a3-e55d-4561-8323-f85c3cab98da%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment