search for: password_confir

Displaying 1 result from an estimated 1 matches for "password_confir".

Did you mean: password_conf
2006 Jun 04
1
Problem with instance variables
...ttp://sonjayatandon.com/05-2006/how-to-build-a-secured-web-application-with-ruby-on-rails/ and decided to add an email field. The problem is that the email is not being saved on the database and I end up with two email variables: @email and email. validates_presence_of :user_name, :password, :password_confirmation, :email #:email was added by myself validates_uniqueness_of :user_name # email getter def email @email end #email setter def email=(eml) emailRE= /[\w._%-]+@[\w.-]+.[a-zA-Z]{2,4}/ if eml =~ emailRE @email = eml else # display error message end end...