Displaying 1 result from an estimated 1 matches for "static_pages_control".
2012 Aug 16
1
How to create subpages.
...Would I need to create a new controller for each page category? (i.e. home,
about, contact, support). And then add the pages within each respective
category.
The big problem I am having currently is routing the pages.
So I currently have the top level navigation all done under 1 controller
(static_pages_controller.rb) & the routes.rb (match ''/about'', to:
''static_pages#about'').
So I am trying to figure out how I would add the subpages for about
(history, location, careers) so they the url www.example.com/about/history
etc.
I''m sure there is an easy wa...