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

Updated . Posted . 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
License
Source code in this card is licensed under the MIT License.
Posted by Henning Koch to makandra dev (2013-12-27 13:08)