Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uninitialized constant errors in Rails 3 Model classes #11

Open
divvan opened this issue Jan 8, 2011 · 0 comments
Open

Uninitialized constant errors in Rails 3 Model classes #11

divvan opened this issue Jan 8, 2011 · 0 comments

Comments

@divvan
Copy link

divvan commented Jan 8, 2011

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant