Closed ajcrites closed 11 years ago
Andrew, the part of the documentation you quote, is referring to the fact that you do not need to configure CouchRest Model to be able to start using it. The assumption made here is that you already have a working rails configuration before adding gem couchrest_model
to your Gemfile.
Sqlite3 is required by ActiveRecord, which is completely independent from CouchRest Model. In fact, there may indeed be many scenarios where it is useful to have both ActiveRecord and CouchRest Model available in the same project.
If you no longer want to use ActiveRecord in your project, I'd recommend removing it from your application configuration in config/application.rb
. The top part should look something like:
# We don't need active record, so load everything but:
# require 'rails/all'
require 'action_controller/railtie'
require 'action_mailer/railtie'
require 'rails/test_unit/railtie'
After this, any references to config.active_record
in your environment will also need to be removed.
There is also a great answer on StackOverflow for getting around this: http://stackoverflow.com/questions/19078044/disable-activerecord-for-rails-4
Hope that helps.
@samlown Your explanation and the SO question made a lot of sense and helped me understand this issue. It may be appropriate to update the documentation for those less experienced with Rails (like me), but maybe that would be overkill.
The documentation claims that Couchrest Model will
I've confirmed that CouchDB is running on port 5984 on localhost.
I performed the following steps:
When I visit
localhost:3000
I get the error:This seems to imply that additional configuration is needed to either select a CouchDB database adapter or forego using an adapter.
Adding
config/couchdb.yml
, even viarails g couchrest_model:config
results in the same issue.