Forum: Ruby on Rails Problem with acts_as_taggable table migration

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
9a64f190613b1893b7203ef362932d33?d=identicon&s=25 Brian Landau (Guest)
on 2007-02-08 10:53
(Received via mailing list)
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:in
`require'
/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:in `new_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:in `load_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:in `silence_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:in `load_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:in `load_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:in
`send'
/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:in
`gem_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:in `call'
/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:in `each'
/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:in
`invoke'
/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:in
`invoke'
/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:in `each'
/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:in `each'
/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:in
`invoke'
/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:in
`invoke'
/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:in
`each'
/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:in `load'
/opt/local/bin/rake:16

Any ideas?

-Brian
3e6bbd5a01437feec48adf3838b15d91?d=identicon&s=25 askegg (Guest)
on 2007-02-09 02:27
(Received via mailing list)
On Feb 8, 8:53 pm, "Brian Landau" <brianjlan...@gmail.com> 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?
This topic is locked and can not be replied to.