acts_as_commentable
acts_as_commentable copied to clipboard
Generator is not working in Rails 4
I tried using the gem and it showed me the error: "Could not find generator comment."
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
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.
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