For example, I have the rote in routes.rb:
get 'companies/' => 'companies#index', :as => :companies
There is the way to generate link with the trailing slash (like "http://website.com/companies/"):
link_to 'Compaines', companies_path(:trailing_slash => true)
But I want Rails to generate link with trailing slash if it is present in the route by default:
link_to 'Companies', companies_path
Now it generates something like "http://website.com/companies". How to fix it?