Hi everyone, I am running through the RailsSpace tutorial. I''m trying to figure out the advanced login section, which in short creates a cookie and an authorization token in the users table in the database. My trouble is, I''m getting error: Wrong number of arguments (0 for 1) the code that has been updated is as follows: In ApplicationController: before_filter :check_authorization When I comment this line out, the application is displayed without error. Unfortunately i don''t know enough about rails to understand how to fix this. However without it, I can''t add the remember me functionality in the site.... Any ideas??? Many Thanks for reading.
On Wed, Sep 16, 2009 at 2:05 PM, RubyonRails_newbie <craigwesty79-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> I am running through the RailsSpace tutorial. I''m trying to figure out > the advanced login section, which in short creates a cookie and an > authorization token in the users table in the database. > > My trouble is, I''m getting error: Wrong number of arguments (0 for 1) > > the code that has been updated is as follows: > > In ApplicationController: > > before_filter :check_authorizationWhat does the signature of this check_authorization method look like? Seems it''s expecting an argument you''re not sending. -- Greg Donald http://destiney.com/
On Sep 16, 8:05 pm, RubyonRails_newbie <craigwest...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> Hi everyone, > > I am running through the RailsSpace tutorial. I''m trying to figure out > the advanced login section, which in short creates a cookie and an > authorization token in the users table in the database. > > My trouble is, I''m getting error: Wrong number of arguments (0 for 1) > > the code that has been updated is as follows: > > In ApplicationController: > > before_filter :check_authorization >What does you check_authorization method look like ? What''s the backtrace when you get that error ? Fred> When I comment this line out, the application is displayed without > error. Unfortunately i don''t know enough about rails to understand how > to fix this. However without it, I can''t add the remember me > functionality in the site.... > > Any ideas??? > > Many Thanks for reading.