method

remove_trailing_slash!

Importance_0
Ruby on Rails latest stable (v6.1.7.7) - 0 notes - Class: ActionView::Helpers::UrlHelper
remove_trailing_slash!(url_string) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionview/lib/action_view/helpers/url_helper.rb, line 782
        def remove_trailing_slash!(url_string)
          trailing_index = (url_string.index("?") || 0) - 1
          url_string[trailing_index] = "" if url_string[trailing_index] == "/"
        end
Register or log in to add new notes.