I am trying to set the base address www.myplace.com/admin to be directed to www.myplace.com/admin/adminhub within the namespace coding below. I have tried every combination I can think of, but to no avail. I was trying to follow the same code used for the / of the app.
namespace :admin do
...
get "adminhub"
get 'admin', to: 'adminhub'
end
redirect_to "/admin/adminhub", status: 301. It isn't best practice, but it seems that train left the station long ago :)get '/admin', to 'admin#adminhub'?