Here @users will be having all those users, whose names are either @request.requester or @request.regional_sales_mgr.
But what is the Ruby statement to get the result of -
“@users will be having all those users, whose names are @request.requester and @request.regional_sales_mgr” ?
I don’t see how you’re request make sense. Here we have a single
attribute (“name”) so you seem to be asking how to ask something like
the follow example:
Users where name is “Bob” and “Alice”. How can a single attribute
simultaneously have two different values? It seems to me that you want
to use the OR condition just like the original statement, which would
cause you @users to contain all users where the name is either “Bob” or
“Alice”.
But if you really want to see the syntax here’s what it might look like: