Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

in rails 3, I typed rails generate session user_session...says generate does not exist #21

Open
angelacode opened this issue Nov 26, 2010 · 3 comments

Comments

@angelacode
Copy link

I did the equivalent in rails3 of this from the documentation:

script/generate session user_session

I assume that would become:

rails generate session user_session

I get the following error:

Could not find generator session.
@mbennett
Copy link

mbennett commented Dec 8, 2010

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?

@mbennett
Copy link

mbennett commented Dec 9, 2010

The following page says that authlogic is not "rails3 ready". http://wiki.rubyonrails.org/rails/version3/plugins_and_gems

@frnkmxwll
Copy link

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 methodconfig' 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

'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants