On 22 September 2017 at 16:07, fugee ohu <fugee279@gmail.com> wrote:
>
>
> 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.
>
>
> mailboxer setup install followed by migrate doesn't create any models, just
> those 4 tables, so it would seem the models aren't necessarily needed
Migrations never create models, they just setup the database. The
models are defined in the gem code.
https://github.com/mailboxer/mailboxer/tree/master/app/models/mailboxer
I suggest you take a day or three out and work right through the
tutorial at railstutorial.org, which is free to use online, that will
show you the basics of rails.
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-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/744df08f-b999-4b80-a480-d721e41fa4a8%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.
--
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/CAL%3D0gLt-wOkePt3O1KRKkGec92bEi9PYWztg7dC3yLBwg44L%2Bg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment