installing rails 4:
gem install rails --version 4.0.0.rc1 --no-ri --no-rdoccreating a new rails application:
rails new myappuncomment this line:
gem 'therubyracer', platforms: :rubyput devise on your Gemfile:
gem 'devise', git: 'https://github.com/plataformatec/devise.git'Running bundle command to install the gem:
bundleInstalling devise on rails app:
rails g devise:installCreating a devise model with yours modules:
rails generate devise UserIf you want, it’s possible to use Admin model.
Run the migrations and now we have devise configured:
rake db:migrateThat’s it.