NameError:CassandraObject :: Model中未初始化的类变量@@ config

时间:2014-01-04 05:35:48

标签: ruby-on-rails cassandra

当我widget = Widget.create(name: 'Acme', price: 100)

时,请按照文档进行操作

我得到了

/.rvm/gems/ruby-1.9.3-p484/gems/gotime-cassandra_object-4.11.4/lib/cassandra_object/model.rb:20:in `config'

/.rvm/gems/ruby-1.9.3-p484/gems/gotime-cassandra_object-4.11.4/lib/cassandra_object/connection.rb:24:in `cql'

/.rvm/gems/ruby-1.9.3-p484/gems/gotime-cassandra_object-4.11.4/lib/cassandra_object/connection.rb:31:in `block in execute_cql'

有什么建议吗?

1 个答案:

答案 0 :(得分:0)

问题是配置文件不在初始化文件夹下,一旦我把它放在那里工作。