> If you have a user, current_user for example, then his games will be > current_user.games.
At the moment I have under the profile @user.games that should return all games associated with that particular user but no results. I would like it so that when a new game is added it will associate itself with the current logged in user rather than entering the username. Would I have to do this as part of the _form.html.erb input for games or must this be declared in a model? All help will be greatly appreciated. -- 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 post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.