jackdempsey / acts_as_commentable

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

generator not working when gem is installed #10

Closed andreierdoss closed 14 years ago

andreierdoss commented 14 years ago

I installed the gem and then when I ran script/generate comment, I got Couldn't find 'comment' generator.

jackdempsey commented 14 years ago

What's your setup? rails version, ruby, gem version, etc. I just added it to a Gemfile in a brand new rails 3 app:

~/xx > script/rails g comment create app/models/comment.rb create db/migrate/20100718212049_create_comments.rb

logankoester commented 14 years ago

I'm also having this issue with Rails 2.3.8, Ruby 1.8.7p249 using bundler

jackdempsey commented 14 years ago

logankoester,

The 3.0 version isn't compatible with that version of rails. The quick fix is to use the 2.0 version which you can install as so:

config.gem 'jackdempsey-acts_as_commentable', :source => "http://gems.github.com", :lib => 'acts_as_commentable'

(obviously a bit different if using bundler, but you get my drift)

When I can get a sec, I'll push a 2.0 version to rubygems.org

logankoester commented 14 years ago

Thanks :-)

jackdempsey commented 14 years ago

NP, there's a v2.0.1 tag out there, and I pushed a 2.x gem to rubygems...doesn't seem to be showing up yet, hopefully will soon.