Multi level static site?

Hi, I am currently using Rails to manage a static site (caching) and
love the ability to just create a controller and drop .rhtml files in
the corresponding views folder to have them render with layout etc.

My question is how do you get rails to pick up nested content?

e.g.
[Views]
level-1/
index.rhtml
level-2/
index.rhtml

Any help would be much appreciated!

Create a controller like this

script/generate controller level1::level2::test

It will create what you want as it creates a folder called level1 and
then a
folder called level2 and ultimately it puts the testcontroller.rb in the
level2 folder.

When you check the views folder, its also as you specify.

Hope this helps

On 2/23/07, Michael — [email protected] wrote:

level-1/


Saludos,
Juan Roberto Morales
Gerente General
Digital Vision Studios