One layout for entire apps

Dear all,

I am still new in rails, and I realised that in rails each model has
its own layout/template located under layouts/

Now my question is, is it possible to have only one layout for the
entire apps instead of having separate one for each model? If so, is
there any guide I can read about it? Or could someone give me a hint
on how to do it

Thanks in advance

Section 2.2.12


By default, Ruby on Rails will attempt to render the following layout view.

* /app/views/layouts/application.html.erb

This would match the ApplicationController naming.

Good luck!


Thank you all for the responses. I'm going to try it out first.


You can also change the layout by calling layout 'layout' from the
controller class.

Joshua Partogi napĂ­sal(a):