Let's say you're in your user controller and you want to change the name a @user based on some params you have available to you.
I want to know if there is any difference between the following:
@user.name = params[:user][:name]
or
@user.assign_attributes({:name=> params[:user][:name]})
Thanks in advance!