Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

README mentions #create but I cannot find it #53

Closed
awendt opened this Issue · 1 comment

3 participants

@awendt

As proposed by the README, I created a class:

class User
  include CouchPotato::Persistence
end

But when I try to create a user, I get

NoMethodError: undefined method `create' for User:Class

This is documented in the README section "Dirty tracking." Am I missing something? Or did the method get thrown out?

@matthiasjakel

"CouchPotato tracks the dirty state of attributes in the same way ActiveRecord does"

Its only an example how the dirty tracking in ActiveRecord works. you have to use

CouchPotato.database.save user
@langalex langalex closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.