Vestal_versions和acts_as_taggable_on

时间:2010-03-04 14:13:09

标签: ruby-on-rails ruby acts-as-taggable-on vestal-versions

有没有人成功整合了版权和acts_as_taggable_on插件?我添加到我的应用程序中,使用acts_as_taggable_on跟随环境行.rb

config.gem 'vestal_versions'  

并且在任何rake任务或生成器脚本调用中,我看到

$ ./script/generate
/opt/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/
gem_dependency.rb:119:Warning: Gem::Dependency#version_requirements is
deprecated and will be removed on or after August 2010.  Use
#requirement
/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/
reflection.rb:187:in `quoted_table_name': undefined method
`quoted_table_name' for VestalVersions::Tagging:Module (NoMethodError)
        from /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/
active_record/associations.rb:1416:in
`configure_dependency_for_has_many'
        from /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/
active_record/associations.rb:824:in `has_many'
        from (eval):3:in `has_many'
        from /opt/local/lib/ruby/gems/1.8/gems/mbleigh-acts-as-
taggable-on-1.0.5/lib/acts_as_taggable_on/acts_as_taggable_on.rb:25:in
`acts_as_taggable_on'
        from /opt/local/lib/ruby/gems/1.8/gems/mbleigh-acts-as-
taggable-on-1.0.5/lib/acts_as_taggable_on/acts_as_taggable_on.rb:24:in
`class_eval'
        from /opt/local/lib/ruby/gems/1.8/gems/mbleigh-acts-as-
taggable-on-1.0.5/lib/acts_as_taggable_on/acts_as_taggable_on.rb:24:in
`acts_as_taggable_on'
        from /opt/local/lib/ruby/gems/1.8/gems/mbleigh-acts-as-
taggable-on-1.0.5/lib/acts_as_taggable_on/acts_as_taggable_on.rb:20:in
`each'
        from /opt/local/lib/ruby/gems/1.8/gems/mbleigh-acts-as-
taggable-on-1.0.5/lib/acts_as_taggable_on/acts_as_taggable_on.rb:20:in
`acts_as_taggable_on' 

你知道如何解决这个问题吗?

1 个答案:

答案 0 :(得分:1)

我认为有人因为这个原因而分叉了vestal_versions: http://github.com/dfurber/vestal_versions

标签已重命名为tag_version。