I tried adding this to application.rb
config.action_controller.default_url_options = { :trailing_slash => true }
as well :trailing_slash => trueas routes. rb
match '/download', to: 'welcome#download', via: 'get', :trailing_slash => true
But it doesn't seem to work. I searched the 4.0 doc rails but could not find the relevant information. What am I missing here?
Update:
I tried adding
Rails.application.default_url_options[:trailing_slash] = true
in filter_parameter_logging.rb, since this is the only place in the whole project where I could find Rails.application.*, but it does not work. I found a line here among the releases , and I'm using 4.0.4. Can I add this in the wrong place? And I restarted the server before re-checking.
And sorry for the simple question, but from what I compiled is not trailing_slashwhich should be reflected in the browser URL, if not in the first place? Because this is what I need to go with the story.