Rails always tries to use a layout with the same name as your controller

Posted Over 10 years ago. Visible to the public.

If you have a FooController and also have a layout app/views/layouts/foo.html, Rails will use this without being told so.

This is super convenient except never.

Henning Koch
Last edit
Over 10 years ago
License
Source code in this card is licensed under the MIT License.
Posted by Henning Koch to makandra dev (2013-12-27 13:08)