Re: Salted Login Generator issues

Ben Bleything
Wed, 18 May 2005 00:39:16 -0000

> When I hit the login action, I get errors in my log files.  The specific
> error with trace is included below.  Unfortunately, I''m a
ruby/rails
> newb and my skills don''t seem to be strong enough to track this
one
> down.

Wooo.  Way to include the log.  Here we go:

Processing UserController#login (for 192.168.243.123 at Tue May 17 17:28:33 PDT
2005)
  Parameters: {"action"=>"login",
"controller"=>"user"}
  User Columns (0.000966)   SHOW FIELDS FROM users
Rendering user/login within layouts/scaffold
  User Columns (0.000815)   SHOW FIELDS FROM users
Rendering layouts/scaffold (200 OK)
  User Columns (0.000806)   SHOW FIELDS FROM users


NoMethodError (undefined method `[]'' for nil:NilClass):
    app/controllers/user_controller.rb:8:in `login''

/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/action_controller/base.rb:708:in
`send''

/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/action_controller/base.rb:708:in
`perform_action_without_filters''

/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/action_controller/filters.rb:294:in
`perform_action_without_benchmark''

/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/action_controller/benchmarking.rb:37:in
`perform_action_without_rescue''

/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/action_controller/benchmarking.rb:37:in
`measure''

/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/action_controller/benchmarking.rb:37:in
`perform_action_without_rescue''

/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/action_controller/rescue.rb:79:in
`perform_action''

/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/action_controller/base.rb:330:in
`send''

/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/action_controller/base.rb:330:in
`process''

/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/action_controller/base.rb:273:in
`process''
    /usr/local/lib/ruby/gems/1.8/gems/rails-0.12.1/lib/dispatcher.rb:32:in
`dispatch''
    /opt/www/toolbox/public/dispatch.fcgi:20
    /opt/www/toolbox/public/dispatch.fcgi:18:in `each_cgi''
    /usr/local/lib/ruby/site_ruby/1.8/fcgi.rb:597:in `each''
    /usr/local/lib/ruby/site_ruby/1.8/fcgi.rb:597:in `each_cgi''
    /opt/www/toolbox/public/dispatch.fcgi:18


Rendering
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/action_controller/templates/rescues/layout.rhtml
(500 Internal Error)