Answer the question
In order to leave comments, you need to log in
Changing controller path in Rails routes?
Hello how to change the path in routes ("config\route.rb") rails
namespace :institution do
get :index, path: '', to: "application#index" # Главная страничка
end
Answer the question
In order to leave comments, you need to log in
Either change the namespace to scope, or put a slash before the controller name, then the path will become absolute, not relative.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question