Forum: Ruby on Rails restful_authentication --need a little help...

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Elliott B. (Guest)
on 2007-02-27 22:01

I've adapted an successfully adapted an example from 'Rails Cookbook'
(6.1) as a means of experiment with the 'restful_authentication' from

Here are the steps I've followed:

1.) ./script/generate authenticated user sessions --include-activation

2.) ./script/generate authenticated_mailer user

3.) #application.rb
include AuthenticatedSystem

4.) #routes.rb
  map.resources :users, :sessions

5.) rake db:migrate

In theory, I should be able to goto to:

And get a form for creating a new user...

Instead I get a 500 error and the following lines in my log file:

(404 Page Not Found)
undefined method `helper_method' for Object:Class
./script/../config/../lib/authenticated_system.rb:96:in `send'
./script/../config/../lib/authenticated_system.rb:96:in `included'

#The line in question from authenticated_system.rb

95.    def self.included(base)
96.      base.send :helper_method, :current_user, :logged_in?
97.    end

My questions are these:

1. What does this error mean?  The error is thrown in the
authenticated_system code, but I have a feeling that I am at fault.  The
ruby here is a little more abstract than I'm used to.

2. Does anyone know of a good discussion of restful_authentication?

Thanks for your consideration.
Elliott B. (Guest)
on 2007-02-27 23:51

My include statement was outside the class definition.

Problem solved.
This topic is locked and can not be replied to.