Archive for February 15th, 2009
Rails Default Layout
Posted on February 15, 2009, under Rails.
0
As we all know, for any controller, by default rails looks the controller name .rthml files and if it doesn’t exists then it looks application.rhtml.
Since my site is very simple, I don’t have many layouts and just one layout and so i stored the layout file in app/views/layouts/application.html.erb and i removed all other layout files so that by default it will read application.html.erb.
Hope this helps somebody!
Pads