then don't nest the resources

map.resources :groups
map.resources :posts


On Nov 13, 10:58 am, elioncho <[EMAIL PROTECTED]> wrote:
> Hello,
>
> How can I hide params on the URL? If I have the following resources,
> how can I hide the groups resources on the URL when showing posts?
>
> map.resources :groups do |groups|
>   groups.resources :posts
> end
>
> Normally it will be groups/1/posts/1
>
> I want the URL to show only posts/1 and have the group_id and
> controller_name invisible.
>
> Thanks,
>
> Elías
--~--~---------~--~----~------------~-------~--~----~
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