simply_stored
simply_stored copied to clipboard
A convenience wrapper around CouchDB (using CouchPotato) that supports relations and S3 attachments
Model.first or any other db call returns an hash. res = Model.first res.name wont work. But documentation says, we can make res.name call. And also can I know how to...
Model.find(:first, options) does not pass the options along to the view. This breaks Model.last, because the {:order => :desc} is not passed along, so Model.first and Model.last both return the...
Taking the example from the fixtures file in the simply_stored tests for User and Document. When doing a_user.add_doc a_document, we get a 'NameError: uninitialized constant Doc' Because in https://github.com/peritor/simply_stored/blob/master/lib/simply_stored/couch/has_many.rb#L61 we...
fix for this issue: https://github.com/peritor/simply_stored/issues/17
For example when having such a scenario class Post include SimplyStored::Couch belongs_to :owner, :class_name => "User" end class User include SimplyStored::Couch has_many :creations, :foreign_key => "owner_id" end When wanting to...
This was fixed in the 0.6.0 of couch_potato to make it compatible with rails 3.1, since simply_stored is using 0.5.7 the issue is there. See for reference: https://github.com/langalex/couch_potato/pull/39 https://github.com/langalex/couch_potato/issues/40 https://github.com/dozeo/couch_potato/commit/0ff2323ea636c1aa65aa7a9e790fbe37e4095b7a#L1L173
hi...this is a pretty noob question....when I use find_by_email I get: Warning: Defining view User#by_email with keys "email" at call time, please add it to the class body... I don't...
when I try to persist an instance of the entity class defined inside the module, I'm getting following exception: ``` c:/Ruby/Ruby-1.9.2/lib/ruby/gems/1.9.1/gems/couch_potato-0.4.0/lib/couch_potato/view/custom_views.rb:34:in `instance_eval': (eval):1: syntax error, unexpected '/', expecting ';' or...
Forgive me if this is stated some place else in the docs. I looked and couldn't find any information regarding version compatibility. Ruby 1.9.2-p180 Ubuntu 10.04 simply_stored (0.5.0) Stack: scottw@cvgweavers02-linuxvm:~/Projects/o2o-accelerator$...
I'm new to Rails 3 and simply_stored. When I try to create a Model class (such as User) with the line 'include SimplyStored::Couch', I get an error: class:User': uninitialized constant...