Forum: Ruby on Rails Multiple scope routes

3f52fe29df00360ea265a5560058739a?d=identicon&s=25 Rick Cockerham (pixie)
on 2013-08-21 16:01
Here's an interesting question that I'm not sure has an answer.  I would
like a controller to be accessed by multiple URL's within Rails.

They should both show the same page.

This works, but is an anti-DRY solution:
  scope "/crm" do
     resources :users
  scope "/admin" do
     resources :users

The solution I'm thinking of is to rewrite using Apache.  But, first I'd
like to know if I can do this within the routes because I have many
apache configs, but just one route file.

Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.