Open angelacode opened 13 years ago
I am getting the same problem as angelacode. I added the authlogic gem in the Gemfile and then tried to generate the user_session class using the session generator. This is using rails 3.0.3. Any ideas?
The following page says that authlogic is not "rails3 ready". http://wiki.rubyonrails.org/rails/version3/plugins_and_gems
Having similar problems, using Rails 3.1.1
When I run: rails generate session user_session
I get this error:
c:/Ruby/Programs/swipe/config/application.rb:3:in <top (required)>': undefined local variable or method
config' for main:Object (NameEr
ror)
from c:/Ruby/lib/ruby/gems/1.9.1/gems/railties-3.1.1/lib/rails/commands.rb:21:in require' from c:/Ruby/lib/ruby/gems/1.9.1/gems/railties-3.1.1/lib/rails/commands.rb:21:in
<top (required)>'
from script/rails:6:in require' from script/rails:6:in
I did the equivalent in rails3 of this from the documentation:
I assume that would become:
I get the following error: