Skip to content

Uninitialized constant errors in Rails 3 Model classes #11

@divvan

Description

@divvan

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 User::SimplyStored (NameError)".

In the 'Usage' section of your website, it says to include the lines:

require 'simply_stored/couch'
CouchPotato::Config.database_name = 'couchdb_test'

But I'm not sure where these should go. I've tried putting them in a file 'config/couchdb.rb', and in the Gemfile, but it doesn't make any difference.

I'm using Rails 3.0.0.rc2, simply_stored 0.3.9, couch_potato 0.4.0, couchrest 1.0.1, and CouchDB 1.0.1, running on Windows XP SP3.

Thanks for your help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions