unixcharles / refinerycms-blog

Blog plugin for RefineryCMS. Currently out-of-sync with RefineryCMS, see i.resolve blog plugin meanwhile, or send me a pull request.
MIT License
14 stars 5 forks source link

undefined method `acts_as_taggable_on' for Blog(Table doesn't exist):Class #3

Closed jaredmoody closed 14 years ago

jaredmoody commented 14 years ago

FYI, following your installation instructions, the migration doesn't run on a clean install from the git clone of refinery, but does work on a clean install from the refinery gem.

here's the trace:

http://gist.github.com/341607

jaredmoody commented 14 years ago

as a workaround, you can comment line 2 of blog.rb, the acts_as_taggable_on line, run the migration, and then uncomment it.

unixcharles commented 14 years ago

By doing so, you are removing tagging capability of the plugin (for categories, authors and tags)

I cloned the lastest RefineryCMS (I never used the gem version)

Edited the application.rb to remove the RefineryCMS-news gem and add acts_as_taggable_on (you could also install as a plugin)

I ran db:setup, than db:migrate (just to be sure I'm sync with the last change with the authentification system)

then copied the migration file of the blog plugin with rake refinery:blog:install

then run db:migrate

See this gist for the full console output: http://gist.github.com/341653

I think that the migration fail because acts_as_taggable_on is not loaded, you need to load the gem in you application.rb with the line:

config.gem "acts-as-taggable-on", :source => "http://gemcutter.org"

or install it as a plugin if you prefer:

git://github.com/mbleigh/acts-as-taggable-on.git

jaredmoody commented 14 years ago

you're right, i tried it again without issue, perhaps i forgot the config.gem "acts-as-taggable-on", :source => "http://gemcutter.org" line the first time through. Sorry for the false alarm.