after installing the plugin acts_as_taggable_on_steroids like Patrick described in his book I run into the following problem. I want to follow page 361 and typing this “s = Story.find(:first)” in the console I get this error:
Z:\rails_apps\shovelltest>ruby script\console
Loading development environment (Rails 2.0.2)
>> s = Story.find(:first)
RuntimeError: acts_as_taggable_on_steroids has been moved to github: hxxp://gith ub.com/jviney/acts_as_taggable_on_steroids
from Z:/rails_apps/shovelltest/vendor/plugins/acts_as_taggable_on_steroi
ds/lib/acts_as_taggable.rb:10:in acts_as_taggable' from Z:/rails_apps/shovelltest/app/models/story.rb:2 from d:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_suppo rt/dependencies.rb:203:in load_without_new_constant_marking’
from d:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_suppo
rt/dependencies.rb:203:in load_file' from d:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_suppo rt/dependencies.rb:342:in new_constants_in’
from d:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_suppo
rt/dependencies.rb:202:in load_file' from d:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_suppo rt/dependencies.rb:94:in require_or_load’
from d:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_suppo
rt/dependencies.rb:248:in load_missing_constant' from d:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_suppo rt/dependencies.rb:453:in const_missing’
from d:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_suppo
rt/dependencies.rb:465:in `const_missing’
from (irb):1
Since you have git installed, my recommendation is to go to your command line and change directories to your plugin directory (located in the vendor directory) and issue:
I presume that some maintenance was required namely to add git install directory and them “bin” to “path” environmental variable to have short-hand “git” command available.
Output of rails console after the command:
C:\\InstantRails\\rails_apps\\shovell\\vendor\\plugins>git clone http://github.com/jv
iney/acts_as_taggable_on_steroids.git
fatal: destination path 'acts_as_taggable_on_steroids' already exists and is not
an empty directory.
Is there an “uninstall plugin” command or just deleting folder structure sufficient? Any rails codechange required?
Thanks for the help. Now I can continue following the book.
This was done on MS Windows.
I rolled back migration (rails console)
rake db:rollback
closed instantRails
deleted plugin with windows explorer in directory “(…)shovell/vendor/plugins” acts_as_taggable_on_steroids ('Cause otherwise rails tracked plugin location, renaming folder didn’t work)
deleted migration file with windows explorer in directory “(…)shovell/db/migrate/(##)_acts_as_taggable_migration.rb”
installed Git as instructed in articles
started instantRails
executed command (below) in shovel application to get plugin the new way