You can try friendly_id

http://github.com/norman/friendly_id

On Nov 16, 8:24 am, Wagner <wag...@myrango.com> wrote:
> Hello. I am a beginner.
> I wanna make a route like this:
>
> /document-:language-:month-:year.pdf
>
> With 3 params, so I can retrieve a PDF in a URL like:
>
> /document-english-june-2008.pdf
>
> I have 2 problems...
>
> 1. It seems I can't put more than 1 param between the slashes
> The route /document/:language/:month/:year.pdf works fine. Because I
> have each params isolated...
>
> 2. It seems that the "-" cannot be used in the route. Is it true? Is
> there a workaround?
>
> Thanks
--~--~---------~--~----~------------~-------~--~----~
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@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to