Hi! The "login" method in your users_controller.rb file must be taking an argument? It's complaining that login is defined as taking one argument but it's being called without any arguments.
If login is an action method (:action => 'login'), then there are no arguments passed to it. You can just refer to the params variable to get the data passed to your controller from the browser. Hope this helps, I may be way off base on what's REALLy causes the error. :) Kevin Fat Lotus wrote: > Hello all. I've just been having trouble with strange ArgumentErrors > popping up at the bottom of every response. This can be seen on the > app at jaggedhills2.heroku.com/users/test. > > Here's what code is generated: > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http:// > www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> > <html xmlns="http://www.w3.org/1999/xhtml"> > [ Normal page content ] > </html><html> > <head> > <title>Action Controller: Exception caught</title> > > [...] > > <h1> > ArgumentError > > in UsersController#login > > </h1> > <pre>wrong number of arguments (0 for 1)</pre> > > > > <p><code>RAILS_ROOT: /mnt/home/userapps/19146</code></p> > > [...] > > /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:268:in > `initialize' > /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:268:in `new' > /usr/lib/ruby/gems/1.8/gems/mongr > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/heroku?hl=en -~----------~----~----~----~------~----~------~--~---
