On 8 May 2016 at 12:19, Ryan Bell <[email protected]> wrote: >> 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?
I would be astonished if it did not default to the primary table. In fact now I look again I see that the OP has put includes(:event_sessions) after the select method rather than before, which I would have thought is wrong. Colin -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLsESPY%3Dt4D7MXp%2B8%3DPDoNXsGvTZ4VgNGO_LjMJed0WTYQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

