I am working through the agile programing ed2 beta book and I have a
question about the example.
It uses to controllers admin and store.
Then it does a page layout for store.
How can I have one page layout for all controllers?
For instance the admin side and the store side of the site would still
visually have the same template elements. Same Navigation, same overall
appearance.
Paul
I am working through the agile programing ed2 beta book and I have a
question about the example.
It uses to controllers admin and store.
Then it does a page layout for store.
How can I have one page layout for all controllers?
For instance the admin side and the store side of the site would still
visually have the same template elements. Same Navigation, same overall
appearance.
Create app/views/layouts/application.rhtml
-philip
Create app/views/layouts/application.rhtml
Perfect!
Now if using the same example i have a store controller, store layout,
and
an application layout do the cascade or if i load store will it just
pull
the store layout?
Paul:
Only one layout is used. The precedence order goes something like this:
A layout specified in render -> specified in the controller -> default
controller layout -> default application layout