-
Notifications
You must be signed in to change notification settings - Fork 3
Using EZ with Devise
Colin Kuhn edited this page May 8, 2015
·
1 revision
EZ integrates easily with Devise. Follow the steps below to integrate:
- add gem ‘ez’ to your gemfile
- add gem 'devise' to your gemfile
- bundle
- add models.yml file to your db folder
- add User model to models.yml with your columns you would like (note: do not add email, password, etc. at this point. Devise will handle this. Add columns such as first_name, last_name, etc. at this point)
- rake db:migrate
- rails g devise:install
- rails g devise User
- rake db:migrate
- In your model.yml file, now add (
email encrypted_password reset_password_token reset_password_sent_at remember_created_at created_at updated_at sign_in_count: integer(0) current_sign_in_at last_sign_in_at current_sign_in_ip last_sign_in_ip) + any other devise columns you are using (ex: confirmable) under your User model - rake db:migrate
That's it! Devise will now be installed and you can continue using 'EZ' accordingly