Ruby on Rails Monday, September 25, 2017

On 25 September 2017 at 15:21, fugee ohu <fugee279@gmail.com> wrote:
>
>
>
> On Monday, September 25, 2017 at 6:28:17 AM UTC-4, Colin Law wrote:
>>
>> On 25 September 2017 at 11:13, fugee ohu <fuge...@gmail.com> wrote:
>> > Here
>> > https://stackoverflow.com/questions/44417543/mailboxer-recipient-inbox-not-showing-conversations
>> > someone shows how to send a message to a recipient_id rather than a
>> > recipient object My understanding is recipients has to be an object so how
>> > can his example work?
>>
>> Which line of code is sending a message to a recipient_id?
>>
>> Colin
>
>
> Under answer:

Why can't you just answer the question? Do you mean this line?

> receipt = current_user.send_message(recipient, params[:body], params[:subject])

where recipient is a User. If so I don't understand what you are
asking. If you don't mean that line then which line do you mean?

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/CAL%3D0gLuVDSOhc1Vy3%3DYOVVo_UZ_vGiFdBDm%3DLyuDYuHdNRLwgA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment