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

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 Over 10 years ago