But when I want to use start_form_tag or simply url_for, that used in
start_form_tag, I do not know how generate url like /search, becouse
url_tag return url corresponding with routes.rb rules:
But when I want to use start_form_tag or simply url_for, that used in
start_form_tag, I do not know how generate url like /search, becouse
url_tag return url corresponding with routes.rb rules:
/user/search
So, what is the right way to do this?
If I understand the question correctly I think you need to add a ‘/’
at the start of the controller name. Something like the following;