8
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Rails4でdeviseのViewをカスタマイズする

Posted at

Rails認証エンジンDeviseのControllerをカスタマイズする方法について説明します。

:octocat: https://github.com/plataformatec/devise

Devise導入方法

Gemfileにdeviseを追加

Gemfile
gem 'devise'

deviseインストール&Userモデルを生成

bundle Install
rails g devise:install
rails g devise User

DeviseViewのカスタマイズ方法

rails g devise:views users
rails g devise:views [scope]

で app/views/[scope] 以下に以下のviewsが生成される

  • confirmations/
  • mailer/
  • passwords/
  • registrations/
  • sessions/
  • shared/
  • unlocks/

参考

Railsの一番人気のログイン認証gemのDeviseのカスタマイズ方法
DeviseでViewをカスタマイズする
Rails で Devise のビューを作成してカスタマイズ

8
8
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?