|
|
I make it working finally, here is my code, maybe it can help other: (i'm on rails 5) The link on my product page:
My new and create action on my conversation controller: |
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:
e
> 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