Try the plugin at http://github.com/smsohan/acts_as_permalinkable

On Feb 27, 7:37 pm, Vadim Sigaev <[email protected]> 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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to