Vestal_versions 和acts_as_taggable_on

发布于 2024-08-24 00:32:43 字数 1725 浏览 9 评论 0原文

有人成功集成了vestal版本和acts_as_taggable_on插件吗?我已经添加到我的应用程序中,在environment.rb的以下行中使用acts_as_taggable_on

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' 

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

Does anybody successfully integrated vestal versions and acts_as_taggable_on plugins? I've added to my app, that using acts_as_taggable_on following line to environment.rb

config.gem 'vestal_versions'  

and on any rake task or generator script call i see

$ ./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' 

Do you know how to solve this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

云仙小弟 2024-08-31 00:32:44

我相信有人出于这个原因分叉了lvestal_versions:
http://github.com/dfurber/vestal_versions

该标签已重命名为 tag_version。

I believe someone forked vestal_versions for that very reason:
http://github.com/dfurber/vestal_versions

The tag was renamed to tag_version.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文