Changing path_prefix and layout

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

map.resources :products, :path_prefix => ‘/:section_name’

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs