I think the issue is here

>  def update
>
>     @user = User.find(params[:user])
                                                 ^
if you make it

    def update
      @user = User.find(params[:id])
                                              ^

Does that fix it?

Basically I think the way you have it now has two issues
A) is trying to find the user based on the new attributes before
they've been updated in the db
B) more importantly, treating the user's attributes like options sent
to the 'find' method.
I think you can do this but you would have to specify User.find(:all,
params[:user]) or User.all(params[:user])

Hope that helps,
David

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to