Have this code, and i need to find put why it fails.
@user = User.find(@params[:id])
flash[:notice] = ‘The user was successfully updated.’
redirect_to :action => ‘show’, :id => @user
flash[:notice] = “Error: The user have not been updated.”
redirect_to :action => ‘show’
I have an array, that seem to be fine, and contains the correct
information, how do i get the mysql error, that triggers the
@user.update_attributes to not be true. ??