Not sure if my topic title is correct, but here is my question
I have namespace called :admin
, so it looks like mysite.com/admin
. In this section i have some links, that pointing to controllers inside this namespace. But since we have subdomain admin, and my namespace :admin
as well, i'd like to all links that are being generated by routes.rb
to prepend string admin.
, so the link would look like admin.mysite.com/admin/some_other_path
I've tried to add constraints to routes.rb
, but that didn't work for me