Skip to content

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:

  1. add gem ‘ez’ to your gemfile
  2. add gem 'devise' to your gemfile
  3. bundle
  4. add models.yml file to your db folder
  5. 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)
  6. rake db:migrate
  7. rails g devise:install
  8. rails g devise User
  9. rake db:migrate
  10. 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
  11. rake db:migrate

That's it! Devise will now be installed and you can continue using 'EZ' accordingly

Clone this wiki locally