Can't convert String into integer in ruby/ruby-on-rails

前端 未结 3 618
说谎
说谎 2020-12-18 17:30

I want to verify if a user exists, and if so, do a password match.

My controller looks like this:

def attempt_login
    authorized_user = User.authen         


        
3条回答
  •  星月不相逢
    2020-12-18 17:44

    Just want to let you know that i had this problem as well. The issue was quickly solved but the server showed the error every request afterwards. Code changes have not been reflected until i restarted the server.

    touch tmp/restart.txt was not sufficient so i had to restart the server /etc/init.d/apache2 restart to remove the error message.

    $ apache2 -v
    Server version: Apache/2.2.16 (Debian)
    Server built:   Apr  1 2012 07:14:38
    
    $ ruby -v
    ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
    
    $ gem list passenger
    *** LOCAL GEMS ***
    passenger (3.0.13)
    
    $ bundle exec rails -v
    Rails 3.0.7
    

提交回复
热议问题