map.resources :products, :path_prefix => ''/:section_name''
On Mar 17, 9:49 am, railsirrigation
<webmas...-yl/CQclL//BBDgjK7y7TUQ@public.gmane.org>
wrote:> Im a newbie with rails and could use some guidance.
>
> This is what I am doing. I have 3 distinct sections of a client
> site. Each having products, troubleshooting and a downloads. I want
> to use the same controllers for each section but have a
> different :path_prefix and layout for each section.
example:http://www.mysite.com/section1/products &
http://www.mysite.com/section2/products
> would really goto the same controllers and db table but show different
> paths as above and have different layouts.
>
> I see the routes has the :path_prefix and searched some with not luck
> on finding how to do what I want.
>
> any help is much appreciated.
>
> Thanks
> Kevin
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---