Ryan Bell wrote in post #1183301:
>> In fact you don't need rsvp at all here
>> .select('user_id', 'event_sessions.name')
>>
>
> Can we know that? If the `event_sessions` table also has a `user_id`
> column, then wouldn't it be necessary to be explicit?
Ah, it looks like the #select method will assert the the correct table
name(?). Cool. I'm always explicit when I do that, because I expected
#select to behave the same as #order.
Good to know! Thanks.
--
Posted via http://www.ruby-forum.com/.
--
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/d67dca820a0b855d1367e19d3297a0bc%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment