Does Rails 3 have an equivalent to MVC3 Areas?

144 Views Asked by At

Does Rails 3 have an equivalent to MVC3 Areas? I think I came across it previously but cannot find any information on it now.

2

There are 2 best solutions below

1
On BEST ANSWER

You can use namespace feature, described in routes.rb

     # Sample resource route within a namespace:
     namespace :admin do
       # Directs /admin/products/* to Admin::ProductsController
       # (app/controllers/admin/products_controller.rb)
       resources :products
     end
0
On

You can use namespace - http://apidock.com/rails/ActionDispatch/Routing/Mapper/Scoping/namespace

You can also use a :path_prefix option on a specific route