Forum: Ruby on Rails Multi level static site?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
F7fbf4d3d2c00d6c3d6ae0035f3ff300?d=identicon&s=25 Michael --- (block)
on 2007-02-23 10:52
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?


Any help would be much appreciated!
0564099250fb8b68fcce19f2ebe6afac?d=identicon&s=25 Juan Roberto Morales (Guest)
on 2007-02-24 10:28
(Received via mailing list)
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 --- <> wrote:
> level-1/
Juan Roberto Morales
Gerente General
Digital Vision Studios
This topic is locked and can not be replied to.