Sha256: 2a65b9fe4679fbadb8bfca8cb58fc5f2e0e21d78850dac27241c70ef2d44a842
Contents?: true
Size: 751 Bytes
Versions: 10
Compression:
Stored size: 751 Bytes
Contents
# Devise Headmin comes with some default views for all devise related pages. To make use of them, follow the guidelines below. ## Installation Add this line to your application's Gemfile: ```ruby gem 'devise' ``` Run the install generator ```sh $ rails generate devise:install ``` Create a devise model ```sh $ rails generate devise User $ rails db:migrate ``` Generate the default auth views ```sh $ rails generate headmin:devise ``` ## Getting Started ### Change routes Change the default `devise_for` routes with the code below ```ruby devise_for :users, controllers: { sessions: 'auth/sessions', registrations: 'auth/registrations', passwords: 'auth/passwords', unlocks: 'auth/unlocks', confirmations: 'auth/confirmations' } ```
Version data entries
10 entries across 10 versions & 1 rubygems