I’m trying to join two tables and return all columns, not just the ones associated with the model.
I have something like that looks like this:
Comment.joins(:user).select("*")
The SQL looks fine, but still, it only returns the comments and none of the user info associated with it.
How can I retrieve * and not just comments.*?
What about
Now
commentsis going to be an array so you’ll have to loop through it to see all the users.