RoR Layouts
-
default layout is: application.html.erb
-
if we want to define a layout for name_controller.erb, then we can create name.html.erb
-
if we don’t want to use that automatically association by name, then we can explicitly define the layout in the controller. This way:
layout 'mylayout'