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.
In that case then, how can I do to have one common layout for all the
I got the fact that I shouldn’t repeat myself, but I think I read there
is one layout for each controller. Then, if I want one global layout for
the whole website, I would need to repeat the layout for each
I hope I made myself clear with my problem
If I’m completely wrong, please tell me! I feel RoR is really powerful,
and I’d like to know how to deal with it!
Thank you by advance!