[Rails] password encryption is not working..

2012-01-27 Thread uma ya
I am using require 'digest/sha1' to encrypt my password and save into database. During login it is showing the following error- undefined local variable or method `encrypted_password' for #Signin:0x992c990 code: before_save :encrypt_password def has_password?(submitted_password)

[Rails] Error while rake actions

2012-01-04 Thread uma ya
rake aborted! /home/Mahesh/uma/myapp/Rakefile:6: unterminated string meets end of file /usr/local/lib/ruby/1.9.1/rake.rb:2373:in `load' /usr/local/lib/ruby/1.9.1/rake.rb:2373:in `raw_load_rakefile' /usr/local/lib/ruby/1.9.1/rake.rb:2007:in `block in load_rakefile'