Try the plugin at http://github.com/smsohan/acts_as_permalinkable
On Feb 27, 7:37 pm, Vadim Sigaev
<li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>
wrote:> Hi all!
>
> I''m moving to Ruby on Rails from PHP/ZendFramework. And i cannot
> understand how to make such routing model:
>
> I am trying to develop articles site from scratch, so i have article
> model with fields: id, title, section, alias and body, also i have
> sections tree for navigation, each section has fields: id, parent_id,
> title, alias.
>
> I want to have each article have path like
> {root_section_alias}/{subsection_alias}/{article_alias}
>
> Example urls:
>
>
http://localhost/news/spb/ramstain-rullezzhttp://localhost/humor/some-humor-article
>
> --
> Excuse for my bad English
> --
> Posted viahttp://www.ruby-forum.com/.
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.