Removed couchrest-rails from README and started Setup paragraph...
This commit is contained in:
parent
83b70ec080
commit
bfc5d63cf1
1 changed files with 6 additions and 9 deletions
15
README.md
15
README.md
|
@ -28,6 +28,12 @@ but no guarantees!
|
|||
|
||||
gem 'couchrest_model', :git => 'git://github.com/couchrest/couchrest_model.git'
|
||||
|
||||
### Setup
|
||||
|
||||
There is currently no standard way for telling CouchRest Model how it should access your database, this is something we're still working on. For the time being, the easiest way is to set a COUCHDB_DATABASE global variable to an instance of CouchRest Database, and call `use_database COUCHDB_DATABASE` in each model.
|
||||
|
||||
TODO: Add an example!
|
||||
|
||||
### Development
|
||||
|
||||
CouchRest Model now comes with a Gemfile to help with development. If you want to make changes to the code, download a copy then run:
|
||||
|
@ -394,15 +400,6 @@ Options currently avilable are:
|
|||
None at the moment...
|
||||
|
||||
|
||||
## Ruby on Rails
|
||||
|
||||
CouchRest Model is compatible with rails and provides some ActiveRecord-like methods.
|
||||
|
||||
The CouchRest companion rails project [http://github.com/hpoydar/couchrest-rails](http://github.com/hpoydar/couchrest-rails) is great for providing default connection details for your database. At the time of writting however it does not provide explicit support for CouchRest Model.
|
||||
|
||||
CouchRest Model and the original CouchRest ExtendedDocument do not share the same namespace, as such you should not have any problems using them both at the same time. This might help with migrations.
|
||||
|
||||
|
||||
## Testing
|
||||
|
||||
The most complete documentation is the spec/ directory. To validate your CouchRest install, from the project root directory run `rake`, or `autotest` (requires RSpec and optionally ZenTest for autotest support).
|
||||
|
|
Loading…
Reference in a new issue