Ruby on Rails
Monday, September 25, 2017
On Monday, September 25, 2017 at 10:32:18 AM UTC-4, Colin Law wrote:
On 25 September 2017 at 15:21, fugee ohu <fuge...@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
I actually misphrased my original question, there is something odd I'll start a new thread
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/59dea2c5-f754-458e-be4d-0c920c71cf59%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment