I am passing an object like this:
-@users.each do |user|
%tr
%td=link_to(user.first_name, users_user_path(user), :title => user.first_name)
%td=user.first_name
but I am not exactly sure how to retrieve the user object in the controller. I try something like this:
user = User.new(params[:@user])
@user = params[:@user]
But nothing like that works. How is this supposed to work?
Thanks!
You were close.. to get the user in the controller, you would do: