Casted Models don't inherit from CouchRest::Model::Base this cause issue when test from equality because it will use the id from the parent object.
couchrest_model 2.0.1 define the method to_key for CastedModel  which returns an string, but actionpack/action_view need that this method returns an array, this fix the issue when edit form_section.
Merge pull request #17 from cchavez/rails_4.0_upgrade

Rails 4.0 upgrade
Merge pull request #18 from relledge/rails_4.0_upgrade

Rails 4.0 upgrade
Behavior to rails 4 has changed. Changed specs to Model.save.present?.should == true. save returns obj and not true on create.
Merge pull request #19 from jtoliver/rails_4.0_upgrade

Fixed Rails 4 save.should == true behavior change