devise_couch will let you use devise with CocuhrestModel.
Add devise, devise_couch and couchrest_model gems to your Gemfile (your Rails app Gemfile). The following gems are required
gem 'couchrest_model' gem 'devise' gem 'devise_couch' gem 'rails3-generators', :git => 'git://github.com/shenoudab/rails3-generators.git'
Use bundler to install all required gems in your Rails 3 app
bundle install
Run the generator:
rails generate devise:install
The generator will install an initializer which describes ALL Devise's
configuration options and you MUST take a look at it. Make sure to specify
either couchrest_model
(ActiveModel::Validations)
as the orm in the configuration file.
To add Devise to any of your models using the generator:
rails generate couchrest_model:devise MODEL
Example: create a User model for use with Devise
rails generate couchrest_model:devise User
Read the README for devise at devise README
- Fork the project.
- Make your feature addition or bug fix.
- Add tests for it. This is important so I don't break it in a future version unintentionally.
- Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
- Send me a pull request. Bonus points for topic branches.
Kristian Mandrup - - Created the mm-devise gem which was used as a template for the development of this gem. Also made suggestions for a few critical fixes and improvements in the code. Thanks :)
Jared Morgan - Created the dm-devise gem which was used as a template for the development of this gem. Also made suggestions for a few critical fixes and improvements in the code. Thanks :)
For devise_couch specific issues, please create an issue on GitHub at: devise_couch issues
Copyright (c) 2010 Shenouda Bertel MobiThought. See LICENSE for details.