I have 3 tables, one called events, one called users, and one called
created_events which contains an event id and a user id (in order to
link a user and an event together) - each one corresponds to its
I would like to run a query to return the created event for a certain
user by passing their ID to the created_events table - and then return
the relevent rows, plus the event data (linked by the event id).
Is there a way to do this in rails - I could do it in SQL using joins
but am a little unsure of the rails approach!