resource_controller icon indicating copy to clipboard operation
resource_controller copied to clipboard

Add 'trailing_slash: true' as default on all collection_urls

Open jensb opened this issue 12 years ago • 1 comments

Since collection_urls are always "index" views, it should be possible (is it?) to make a trailing_slash the default for those URLs.

Is this possible? If not, what would need to be done?

Thanks!

jensb avatar Apr 13 '13 12:04 jensb

Hey,

I don't think it's currently possible, and we're not likely to add this ourselves. You're welcome to give it a go, but it would need to be configurable, since the trailing slash is not the default in Rails.

Alternatively, you can either simply override collection_url in your controller, or find a way to make it a global default (through default_url_options or something). Not sure if that's actually doable.

kratob avatar Apr 13 '13 13:04 kratob