[Rails] Re: Add multiple user support for a function

2015-01-19 Thread Daniel Loureiro
Hi David, but what if you have a User with id #10 and a BizUser with id #10? I don't know much more about your app, but why don't you send an additional param like params["user_type"], that will provide an "user" or a "biz"? Or why don't you use a global unique identificator instead of rely on

[Rails] Re: Add multiple user support for a function

2015-01-15 Thread David Williams
Colin Law wrote in post #1166693: > On 15 January 2015 at 04:12, David Williams > wrote: >> These two functions below work perfectly for end to end normal user >> interaction. But, I need help giving line 2 of the code "recipients = >> User.where(id: params['recipients']) multiple user support. As