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 ---
<rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:>
>
> 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!
>
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>
--
Saludos,
Juan Roberto Morales
Gerente General
Digital Vision Studios
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---