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

Generator is not working in Rails 4 #57

Open
anmolagrwl opened this issue Jul 28, 2014 · 3 comments
Open

Generator is not working in Rails 4 #57

anmolagrwl opened this issue Jul 28, 2014 · 3 comments

Comments

@anmolagrwl
Copy link

I tried using the gem and it showed me the error:
"Could not find generator comment."

@jackdempsey
Copy link
Owner

I just generated a new Rails 4.10 app, added it to the Gemfile, bundled and ran:

~/foobarbaz > rails g comment
create app/models/comment.rb
create db/migrate/20140729032513_create_comments.rb

@bnmrrs
Copy link

bnmrrs commented Apr 14, 2015

I'm getting the same issue on Rails 4.2.0

$ rails g comment
Could not find generator 'comment'. Maybe you meant 'model' or 'mailer' or 'assets'
Run `rails generate --help` for more options.

@daniely
Copy link

daniely commented May 21, 2015

I just ran rails g comment on a Rails 4.2.2 project with acts_as_commentable 4.0.2 and it works fine.

$ rails g comment
create  app/models/comment.rb
create  db/migrate/20150521003238_create_comments.rb

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

4 participants