Hello!
I've just started using ruby on rails, and I'd like for a first try create a simple website.
But I can't figure out how to organise it from the RoR point of view.
Here is my problem:
I'd like to set up a website with a two level menu, so there will be different groups of menu elements.
Do I have to create one controller for each group? Each page would be then represented by one method.
That's not a bad way of organising things. Conceptually, one controller should be responsible for a closely related set of operations.
In that case then, how can I do to have one common layout for all the controllers?
in views/layouts, remove all the individual controller layouts and create an application.rhtml layout, which will be used as the default. Scaffolding will generate a layout for a new controller, so make sure you remove that if you don't want it.
--max