[Rails] When the layout change of devise is not reflected

Check if the devise layout doesn't change

table of contents

  1. I changed the layout but it is not reflected
  2. Modify `` `config / initializers / devise.rb```

1. I changed the layout but it is not reflected

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!

2. Modify `` `config / initializers / devise.rb```

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

[Rails] When the layout change of devise is not reflected
[rails] Edit of view page created by devise is not reflected
[Rails] Cancel / change the default password validation of devise
The idea of cutting off when the error is not resolved
rails AWS deployment is not reflected
[Rails 5] How to display the password change screen when using devise
[Rails] Annotate is not executed when migrating
Change the layout when rotating with onConfigurationChanged
[Rails] Change the label name of f.label
Incident (rails) that is logged out when user editing of the application
ActiveSupport underscore is not the inverse of camelize
When the project is not displayed in eclipse
[Rails 6] Change redirect destination at the time of new registration / login by devise
Upcast (Java) that can reduce the amount of change when the specification is changed
[Rails] What to do when the Refile image is not displayed when writing the processing at the time of Routing Error
When the hover of Eclipse is hard to see
When the month of the date is acquired, the January shift
[Rails] How to change the column name of the table
When the server does not start with rails s
[rails] After option useful when you want to change the order of DB columns
[Railways] Railways does not work when the RubyMine project root is other than the Rails root directory.
[Ruby on rails] When executing the heroku command, bash: heroku: command not found is displayed. [Rails tutorial]
Library not loaded when trying to upgrade the version of ruby and rails s
[Rails] Introduction of devise Basics
The story when the test folder was not created in Rails
Fixed the phenomenon that vuetify built in Rails is not loaded when page transition is done
How to solve the problem when the value is not sent when the form is disabled in rails and sent
% rails db: When creating, the LoadError caused by mimemagic is
When rewriting the CMD of docker image of Pod in the manifest of k8s, command is not good
When changing user information using devise Settings on the edit screen when the password is not saved
[Rails] Record when the event did not fire when the javascript file name is the same as the controller
[Swift] Get the timing when the value of textField is changed
When you want to change the MySQL password of docker-compose
Even if I write the setting of STRICT_QUOTE_ESCAPING in CATALINA_OPTS in tomcat8.5, it is not reflected.
[Rails] fields_for is not displayed
Logback log is not output when the server application is closed
[Note] What to do if bundle install in Chapter 3 of the rails tutorial is not possible
About the solution to the problem that the log of logback is not output when the web application is stopped
What to do if the app is not created with the latest Rails version installed when rails new
What to do when the changes in the Servlet are not reflected
[Ruby on Rails] Change the save destination of gem refile * Note
Change the conversation depending on which day of the week is today
Isn't it reflected even if the content is updated in Rails?
The story of stopping because the rails test could not be done
6 points to doubt when user registration is not possible with devise
Investigation method when the CPU of the server running java is heavy
How to write the view when Vue is introduced in Rails?
'% 02d' What is the percentage of% 2?
[Rails] Check the contents of the object
[Swift] Change the textColor of UIDatePicker
Explanation of the order of rails routes
Check the migration status of rails
Data is not registered in Rails.
[RSpec] When you want to use the instance variable of the controller in the test [assigns is not recommended]
Change the processing when the button on RecyclerView is pressed for each list
[Rails] About the error when displaying the screen due to the autofocus of the form
When the appearance of the input form is broken on the page after rendering
"" Application.js "is not present in the asset pipeline" error in Ruby on Rails
[Rails] About the error that the image is not displayed in the production environment
Error when the member of Entity class used in SpringWebFlux is final
How to constrain the action of the transition destination when not logged in