How do you go about displaying a Rails view without displaying the app layout for a logged in user and another layout for a visitor? It can?
How do you go about displaying a Rails view without displaying the app layout for a logged in user and another layout for a visitor? It can?
You can change the layout for a controller or a controller action, a way to show a view with another layout when the user is not logged in would be like this:
To change the layout of all the controllers that inherit from ApplicationController, it would be the following:
In the rails guides you can find more information about layouts.
this code is if you would not like to use any layout
or it can be