I have seen this numerious times and still have no idea what it means:
undefined method `stringify_keys!’ for “blah22”:String
I am tring to change a password. My code looks like:
def change_password
@user = User.find_by_emailaddr( params[:email] )
if @user.nil? # user profile not created
flash[:notice] = "<b style = \"color:red\">No such user email
found"
redirect_to :action => ‘change_pass’ and return
end
if User.authenticate( params[:email], params[:current_pass] ) and
[email protected]?
if params[:new_pass] == params[:new_passvfy]
begin
@user.update_attributes(@user.setpass = params[:new_pass])
rescue Exception => e
flash[:notice] = e
redirect_to :action => 'change_pass'
else
redirect_to :action => 'traveler_form' and return
end
else
flash[:notice] = "<b style =\"color:red\">New password fields
don’t
match"
redirect_to :action => ‘change_pass’
end
else
flash[:notice] = “<b style = “color:red”>Unknown User”
redirect_to :action => ‘change_pass’ and return
end
end
Once upon a time this all worked. Then I made some changes in another
part of the controller to get something else working on another page,
but odviously this two parts are related somehome, but I don’t see how.
Where is the ‘stringify_keys!’ coming from and what does it mean? Thanks
in advance,
-S