From: Jason James Date: 2009-02-24T01:40:43+09:00 Subject: Re: Hashed_Pasword? Rick Denatale wrote: > On Sun, Feb 22, 2009 at 3:27 PM, Michael Malone > wrote: > >>>> >>>> def encrypt(string) >> def Klass >> That seems the most likely problem to me. If this doesn't solve your >> problem, could you post the point at which you initialise/declare your >> variables? >> >> > No, you should be aware that this is pretty obviously an ActiveRecord > model > object in a Rails app. The accessor methods for database fields are > generated automagically from the database schema. > > It's also probably using either the restful_authentication plugin, or > it's > older brother acts_as_authenticated, both of which normally use > crypted_password, instead of hashed_password for the field name, > although I > beleive that this can be overridden when the authentication code is > generated. > > I'm pretty sure that Hassan Schroeder has the right diagnosis. > undefined local variable or method `hashed_password' for # login: "", email: "", hashed_passwd: nil> > > This indicates that the database column is named hashed_passwd NOT > hashed_password, so ActiveRecord isn't providing a method with the name > hashed_password. > > This is the kind of question which would probably be answered much more > quickly, and with less confusion on the rails mailing list. > > -- > Rick DeNatale > > Blog: http://talklikeaduck.denhaven2.com/ > Twitter: http://twitter.com/RickDeNatale > WWR: http://www.workingwithrails.com/person/9021-rick-denatale > LinkedIn: http://www.linkedin.com/in/rickdenatale Rick, Thanks for the resources. I will use the mailing list next time. You were right - I figured out before seeing your post. I submitted the new user request and was able to look at the error messages from the web server which led me to take a second look at the database. Sure enough there was a field spelling error as you pointed out. Thanks again! -- Posted via http://www.ruby-forum.com/.