0
我產生了腳手架像往常一樣正常的活動記錄couch_rest型號:Rails的Twitter的引導發電機嘗試使用,而不是
rails g scaffold Job description:text user_id:integer finished:boolean
rake db:migrate
但在那之後,引導佈局生成試圖couchrest_model用它似乎:
/Users/cblair/.rvm/gems/ruby-1.9.3-p125/gems/couchrest_model-1.1.2/lib/couchrest/model/base.rb:82:in `method_missing': undefined method `columns' for Job:Class (NoMethodError)
from /Users/cblair/.rvm/gems/ruby-1.9.3-p125/gems/twitter-bootstrap-rails-2.2.0/lib/generators/bootstrap/themed/themed_generator.rb:87:in `block in retrieve_columns'
from /Users/cblair/.rvm/gems/ruby-1.9.3-p125/gems/twitter-bootstrap-rails-2.2.0/lib/generators/bootstrap/themed/themed_generator.rb:101:in `rescue_block'
from /Users/cblair/.rvm/gems/ruby-1.9.3-p125/gems/twitter-bootstrap-rails-2.2.0/lib/generators/bootstrap/themed/themed_generator.rb:86:in `retrieve_columns'
from /Users/cblair/.rvm/gems/ruby-1.9.3-p125/gems/twitter-bootstrap-rails-2.2.0/lib/generators/bootstrap/themed/themed_generator.rb:58:in `columns'
我使用couchrest的東西,但沒有活動記錄。 (我基本上調用了幾個GET和POST方法)。
我的第一個問題是,我如何設置默認的ORM,因此引導程序生成器可能會啓動它?我也試過這個:
rails g bootstrap:themed Jobs fluid --orm=active_record
〜但是我得到了同樣的錯誤,好像忽略了它。