I have installed gem'devise'
to implement the authentication feature.
First of all, complete the change of the layout and design of the login screen, and display the login screen to check with the browser! ... Nothing has changed ...
Restart the server! After all it hasn't changed ...
Did you make a mistake in the file you changed in the first place? (It's not so natural ww What should I do?)
Let's check the `` `config / initializers / devise.rb``` that describes the initial settings of devise!
I found! Please pay attention to the following description. (Commented out by default)
config/initializers/devise.rb
# ==> Scopes configuration
# Turn scoped views on. Before rendering "sessions/new", it will first check for
# "users/sessions/new". It's turned off by default because it's slower if you
# are using only default views.
config.scoped_views = false
Let's change from false to true!
config/initializers/devise.rb
# ==> Scopes configuration
# Turn scoped views on. Before rendering "sessions/new", it will first check for
# "users/sessions/new". It's turned off by default because it's slower if you
# are using only default views.
config.scoped_views = true
The layout was changed safely. With the above, it is a response when the layout change of devise is not reflected.
Recommended Posts