未定义的方法合并
merb datamapper 似乎已损坏。
$ merb
Loading init file from /home/kristian/workspace/ruby/nightly/config/init.rb
Loading /home/kristian/workspace/ruby/nightly/config/environments/development.rb
:size option is deprecated, use String with :length instead (/usr/lib/ruby/gems/1.8/gems/merb_datamapper-1.0.12/lib/merb/session/data_mapper_session.rb:10)
~ Connecting to database...
~ Loaded slice 'MerbAuthSlicePassword' ...
~ Parent pid: 5790
/usr/lib/ruby/gems/1.8/gems/merb_datamapper-1.0.12/lib/merb_datamapper.rb:61:in `run': undefined method `merge' for #<DataMapper::Model::DescendantSet:0xb6f9bd14> (NoMethodError)
有人知道如何解决这个问题吗?
我刚刚卸载了 merb 并再次安装了它,但仍然收到此错误。
merb datamapper seems to be broken.
$ merb
Loading init file from /home/kristian/workspace/ruby/nightly/config/init.rb
Loading /home/kristian/workspace/ruby/nightly/config/environments/development.rb
:size option is deprecated, use String with :length instead (/usr/lib/ruby/gems/1.8/gems/merb_datamapper-1.0.12/lib/merb/session/data_mapper_session.rb:10)
~ Connecting to database...
~ Loaded slice 'MerbAuthSlicePassword' ...
~ Parent pid: 5790
/usr/lib/ruby/gems/1.8/gems/merb_datamapper-1.0.12/lib/merb_datamapper.rb:61:in `run': undefined method `merge' for #<DataMapper::Model::DescendantSet:0xb6f9bd14> (NoMethodError)
Anyone know how to fix this?
I just uninstalled merb and installed it once again, but I am still getting this error.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试升级到几天前刚刚发布的 Merb 1.0.15。它增加了对新 DataMapper 系列的支持并解决了这个特定问题。
我相信 gems 现在位于 gemcutter 上,因此您应该遵循以下安装说明:
http: //wiki.github.com/merb/merb/howto-install
Try upgrading to Merb 1.0.15, which was just released a few days ago. It adds support for the new DataMapper series and resolves this specific issue.
I believe the gems are on gemcutter now, so you should probably follow these installation instructions:
http://wiki.github.com/merb/merb/howto-install