Ruby on rails &引用;不推荐使用警告:类“可继承”属性已不推荐使用;执行rakedb:create时

Ruby on rails &引用;不推荐使用警告:类“可继承”属性已不推荐使用;执行rakedb:create时,ruby-on-rails,ruby-on-rails-3.1,Ruby On Rails,Ruby On Rails 3.1,当我跟踪时,我收到一条错误消息 yulong@ubuntu:~/mystore$ rake db:create rake db:create DEPRECATION WARNING: class_inheritable_attribute is deprecated, please use class_attribute method instead. Notice their behavior are slightly different, so refer to class_attr

当我跟踪时,我收到一条错误消息

yulong@ubuntu:~/mystore$ rake db:create
rake db:create
    DEPRECATION WARNING: class_inheritable_attribute is deprecated, please use class_attribute method instead. Notice their behavior are slightly different, so refer to class_attribute documentation first. (called from <top (required)> at /home/yulong/mystore/config/application.rb:7)
    DEPRECATION WARNING: class_inheritable_attribute is deprecated, please use class_attribute method instead. Notice their behavior are slightly different, so refer to class_attribute documentation first. (called from <top (required)> at /home/yulong/mystore/config/application.rb:7)
    DEPRECATION WARNING: class_inheritable_attribute is deprecated, please use class_attribute method instead. Notice their behavior are slightly different, so refer to class_attribute documentation first. (called from <top (required)> at /home/yulong/mystore/config/application.rb:7)
    DEPRECATION WARNING: class_inheritable_attribute is deprecated, please use class_attribute method instead. Notice their behavior are slightly different, so refer to class_attribute documentation first. (called from <top (required)> at /home/yulong/mystore/config/application.rb:7)
    rake aborted!
    Fixtures is not a class
yulong@ubuntu:~/mystore$ rails g spree:site
    DEPRECATION WARNING: class_inheritable_attribute is deprecated, please use class_attribute method instead. Notice their behavior are slightly different, so refer to class_attribute documentation first. (called from <top (required)> at /home/yulong/mystore/config/application.rb:7)
    DEPRECATION WARNING: class_inheritable_attribute is deprecated, please use class_attribute method instead. Notice their behavior are slightly different, so refer to class_attribute documentation first. (called from <top (required)> at /home/yulong/mystore/config/application.rb:7)
    DEPRECATION WARNING: class_inheritable_attribute is deprecated, please use class_attribute method instead. Notice their behavior are slightly different, so refer to class_attribute documentation first. (called from <top (required)> at /home/yulong/mystore/config/application.rb:7)
    DEPRECATION WARNING: class_inheritable_attribute is deprecated, please use class_attribute method instead. Notice their behavior are slightly different, so refer to class_attribute documentation first. (called from <top (required)> at /home/yulong/mystore/config/application.rb:7)
    [DEPRECATION WARNING] Nested I18n namespace lookup under "activerecord.attributes.checkout" is no longer supported
   create  lib/spree_site.rb
   remove  public/index.html
   append  public/robots.txt
   append  db/seeds.rb
yulong@ubuntu:~/mystore$rake数据库:创建
rake数据库:创建
弃用警告:类\u可继承的\u属性已弃用,请改用类\u属性方法。请注意,它们的行为稍有不同,因此请首先参考class_属性文档。(从at/home/yulong/mystore/config/application.rb调用:7)
弃用警告:类\u可继承的\u属性已弃用,请改用类\u属性方法。请注意,它们的行为稍有不同,因此请首先参考class_属性文档。(从at/home/yulong/mystore/config/application.rb调用:7)
弃用警告:类\u可继承的\u属性已弃用,请改用类\u属性方法。请注意,它们的行为稍有不同,因此请首先参考class_属性文档。(从at/home/yulong/mystore/config/application.rb调用:7)
弃用警告:类\u可继承的\u属性已弃用,请改用类\u属性方法。请注意,它们的行为稍有不同,因此请首先参考class_属性文档。(从at/home/yulong/mystore/config/application.rb调用:7)
雷克流产了!
这不是一门课
yulong@ubuntu:~/mystore$rails g spree:site
弃用警告:类\u可继承的\u属性已弃用,请改用类\u属性方法。请注意,它们的行为稍有不同,因此请首先参考class_属性文档。(从at/home/yulong/mystore/config/application.rb调用:7)
弃用警告:类\u可继承的\u属性已弃用,请改用类\u属性方法。请注意,它们的行为稍有不同,因此请首先参考class_属性文档。(从at/home/yulong/mystore/config/application.rb调用:7)
弃用警告:类\u可继承的\u属性已弃用,请改用类\u属性方法。请注意,它们的行为稍有不同,因此请首先参考class_属性文档。(从at/home/yulong/mystore/config/application.rb调用:7)
弃用警告:类\u可继承的\u属性已弃用,请改用类\u属性方法。请注意,它们的行为稍有不同,因此请首先参考class_属性文档。(从at/home/yulong/mystore/config/application.rb调用:7)
[弃用警告]不再支持“activerecord.attributes.checkout”下的嵌套I18n命名空间查找
创建lib/spree_site.rb
删除public/index.html
附加public/robots.txt
追加db/seeds.rb

请浏览以下链接,这将帮助您在rails 3.1中解决此问题


您使用的是哪种版本的Rails和Spree?@rdvdijk Rails 3.1.0和Spree“0.60.1”我猜Spree与Rails 3.1还不兼容。(另请参见。)您能试用最新的Rails 3.0版本吗?