CARVIEW |
Select Language
HTTP/2 200
date: Thu, 31 Jul 2025 11:13:47 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-robots-tag: none
etag: W/"8412ec9f528544008ef4275de32fe741"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com wss://alive-staging.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=NbDhTXNSQlGLBsVGmxTKsY1%2Fx8BSgoZdt7egm5e9FGAAzr3U4ngBqRGozxTtz5Gm2akASwU7tfsOWw3ywQ7s2eOYecZsxhstqjqjn2vPXEZPbL7QpoAgkqXodBK8OvY0wiaBCJX9Ow%2FY2BoDX%2Fc2KO%2BkbodTM1XhRXNVhc%2Bwa%2BHd4CswvxZBylaiPLZDV9OWRdVXUiTrRtCp5z8HCsOCWgNXL6DJqE8l%2FPcQX1jga8dgxby7uXFgUFpo622hXBecOx%2FmR8zM81%2B6PB0Pt%2BSEWA%3D%3D--Nd%2BG5%2FX4rtiur87y--uGxilIwaR0I1nSMHg5zysw%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.58205328.1753960426; Path=/; Domain=github.com; Expires=Fri, 31 Jul 2026 11:13:46 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Fri, 31 Jul 2026 11:13:46 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: C84C:1BF8B1:8EB017:AAB83B:688B4FEA
How Tos · heartcombo/devise Wiki · GitHub
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
How Tos
Takahiko Inayama edited this page Feb 12, 2024
·
57 revisions
Feel free to add your own how-to and categorize it in this list.
- Upgrade: General Instructions
- Upgrade to Devise 4.4
- Upgrade to Devise 3.1
- Upgrade to Devise 2.2
- Upgrade to Devise 2.1
- Upgrade to Devise 2.0
- Upgrade to Devise 2.0 migration schema style
- Migration legacy database
- Automatically generate password for users (simpler registration)
- Change the default sign_in and sign_out routes
- Change Default Sign_up Registration Path with Custom Path
- Customize routes to user registration pages
- Redirect to a specific page on successful sign in out
- Customize the redirect after a user edits their profile
- Customize the redirect path after destroying a session (signing out)
- Override confirmations so users can pick their own passwords as part of confirmation activation
- Retain User Data after account Delete (soft delete)
- Use Omniauth in a localized scope
- Redirect with locale after authentication failure
- Require admin to activate account before sign_in
- Set up devise as a single user system
- Two step confirmation
- Redirect back to current page after sign in, sign out, sign up, update
- Redirect from HTTPS to HTTP on successful sign out
- Redirect to a specific page on successful sign in, sign up, or sign out
- Redirect to a specific page when the user can not be authenticated
- Do not redirect to login page after session timeout
- Create a guest user
- Allow users to edit their password
- Require authentication for all pages and avoid "You need to sign in..." message when hitting the application root
- Use a custom email validator with Devise
- Notify users via email when their passwords change
- Customize minimum password length
- Create custom layouts
- Custom mailer
- I18n
- Set :host and :port for all devise mailer urls
- Override devise_error_messages! for use in views
- Integrate I18n Flash Messages with Devise and Bootstrap
- I18n Messages for Scoped Resources
- Add sign_in, sign_out, and sign_up links to your layout template
- Allow users to sign in with something other than their email address
- Authenticate via LDAP
- Create a guest user
- Email-only sign-up
- Edit an account without providing a password
- HTTP Authentication
- HTTP Auth Basic
- Recaptcha
- Remote authentication with Devise
- Set up devise as a single user system
- Sign in using either a username or email address
- Simple Token Authentication Example
- Use case insensitive emails
- Use SSL (HTTPS)
- Use subdomains
- AWS Cognito Federated Identity Authentication Example
- OmniAuth: Overview
- OmniAuth: Testing
- Omniauthable, sign out action and rememberable
- OmniAuth: Azure AD
- Capybara
- Controller tests with Rails (and RSpec)
- Cucumber
- OmniAuth: Testing
- Rspec with devise and machinist
- Speed up your unit tests
- Stub authentication in controller specs
- Add an Admin role
- Add a default role to a User
- Create a guest user
- Integrate with CanCan for roles management
- Manage Users with an Admin Role (CanCan method)
- Require admin to activate account before sign_in
- Sign in as another user if you are an admin
- Turn off trackable for admin users
- Add :confirmable to Users
- Add :lockable to Users
- Create a custom encryptor
- Create Haml and Slim Views
- Configure a master password
- Customize user account status validation when logging in
- Disable user from destroying their account
- Disable user from destroying their account (alternative method: by overwriting routes.rb)
- Disallow previously used passwords
- Dynamic user registration timeout
- Embed users in your account model with Mongoid
- Protect Resque Web with Devise
- Send emails from subdomains
- Send emails in background (Resque, Sidekiq and Delayed::Job)
- Using paranoid mode, avoid user enumeration on registerable
- Use Devise Inside a Mountable Engine
- Add sign_in, sign_out, and sign_up links to your layout template
- Display a custom sign_in form anywhere in your app
- Sign in from a controller
- Use Devise generated method and filters for controllers
- Find a user when you have their credentials
- Make Devise work with other formats like mobile, iPhone and iPad (Rails specific)
- Manage users through a CRUD interface
- Mass password reset and email notification
You can’t perform that action at this time.