In my current project we have a problem regarding to the prefered URLS
and the routing which come with it.
For now I have one model Page that acts_as_tree, thus has a belongs_to
and has_many relations with itself. This is of course very nice
because then you can create a nice tree like this.
- subpage 1.1
>- subsubpage 1.1.1
>- subsubpage 1.1.2
- subpage 1.2
Of course this is a very logic way of nesting pages. Now the problem
lies within the SEO url we want for these pages.
With permalink_fu it is no problem for creating urls like
http://localhost.com/pages/page_1 or http://localhost.com/pages/subpage_1_1.
But the last one isn't what we want.. the last one should be
http://localhost.com/pages/page_1/subpage_1_1 or even
http://localhost.com/pages/page_1/subpage_1_1/subsubpage_1_1_2 for the
I can't come up with a routing that makes this possible.. Is there a
way to achieve this? and is it still possible to keep the application
Thanks in advance,