acts_as_commentable icon indicating copy to clipboard operation
acts_as_commentable copied to clipboard

Generator is not working in Rails 4

Open anmolagrwl opened this issue 10 years ago • 3 comments

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

anmolagrwl avatar Jul 28 '14 08:07 anmolagrwl

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

jackdempsey avatar Jul 29 '14 03:07 jackdempsey

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.

bnmrrs avatar Apr 14 '15 13:04 bnmrrs

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

daniely avatar May 21 '15 00:05 daniely