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.
example.com/crm/users/1
example.com/admin/users/1
They should both show the same page.
This works, but is an anti-DRY solution:
scope "/crm" do
resources :users
end
scope "/admin" do
resources :users
end
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.
Thanks,
Rick
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/53ffe7a15bbe7ad3ebfe45a21d8c9a05%40ruby-forum.com.
For more options, visit https://groups.google.com/groups/opt_out.