Problem with acts_as_taggable table migration


#1

I just installed acts_as_taggable in my Rails app, and built the
migration for the needed tables. When I went to run the migration via
the rake command I got this:
/Users/brianlandau/rails/lispr/config/…/vendor/plugins/
acts_as_taggable/lib/acts_as_taggable.rb:1: syntax error, unexpected
$end
"WHERE #{table_name}.#{primary_key} = taggintags, taggings
" +e_record_descendant, self).to_s,

When I run rake with “–trace” I get this added at the end:
/opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in
gem_original_require' /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:inrequire’
/opt/local/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/
active_support/dependencies.rb:495:in require' /opt/local/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/ active_support/dependencies.rb:342:innew_constants_in’
/opt/local/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/
active_support/dependencies.rb:495:in require' /Users/brianlandau/rails/lispr/config/../vendor/plugins/ acts_as_taggable/init.rb:1:inload_plugin’
/opt/local/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/initializer.rb:
401:in load_plugin' /opt/local/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/ active_support/core_ext/kernel/reporting.rb:11:insilence_warnings’
/opt/local/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/initializer.rb:
401:in load_plugin' /opt/local/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/initializer.rb: 185:inload_plugins’
/opt/local/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/initializer.rb:
185:in each' /opt/local/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/initializer.rb: 185:inload_plugins’
/opt/local/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/initializer.rb:
105:in process' /opt/local/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/initializer.rb:43:insend’
/opt/local/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/initializer.rb:43:in
run' /Users/brianlandau/rails/lispr/config/../config/environment.rb:13 /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:ingem_original_require’
/opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in
require' /opt/local/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/tasks/misc.rake:3 /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:incall’
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:in
execute' /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:ineach’
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:in
execute' /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:357:ininvoke’
/opt/local/lib/ruby/1.8/thread.rb:135:in synchronize' /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:ininvoke’
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:364:in
invoke_prerequisites' /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:999:ineach’
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:999:in send' /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:999:ineach’
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:363:in
invoke_prerequisites' /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:356:ininvoke’
/opt/local/lib/ruby/1.8/thread.rb:135:in synchronize' /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:ininvoke’
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in run' /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:ineach’
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in run' /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/bin/rake:7 /opt/local/bin/rake:16:inload’
/opt/local/bin/rake:16

Any ideas?

-Brian


#2

On Feb 8, 8:53 pm, “Brian Landau” removed_email_address@domain.invalid wrote:

I just installed acts_as_taggable in my Rails app, and built the
migration for the needed tables.

Can you post your full migration file here please?