direct matching of params hash to model

Hi all,

I was wondering if there is provision of direct matching of params hash and models.
What I mean is, is there a way by which params[:user][:email] automatically gets assigned to
user.email?

What I know off is that you have to do user.email=params[:user][:email]

I’ll appreciate if anyone helps me with this

regards
gaurav

user.set_attributes(params[:user])

should work…