How can I remove slug name from URL? I have URL with parent page:
host_url/home/index
but I need this to be as
host_url/index #without parent slug name
How can I remove slug name from URL? I have URL with parent page:
host_url/home/index
but I need this to be as
host_url/index #without parent slug name
You can simply change the routes
as:
match '/index', :to => 'home#index', via: [:get]
If using resources
in routes
.
resources :users, path: '/'
get '/index' => 'home#index'