jackdempsey / acts_as_commentable

The ActiveRecord acts_as_commentable plugin
http://juixe.com/svn/acts_as_commentable/
MIT License
834 stars 177 forks source link

Generator is not working in Rails 4 #57

Open anmolagrwl opened 10 years ago

anmolagrwl commented 10 years ago

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

jackdempsey commented 10 years ago

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 commented 9 years ago

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 commented 9 years ago

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