method

corrections

Importance_0
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: UrlGenerationError
corrections() public

No documentation

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

Hide source
# File actionpack/lib/action_controller/metal/exceptions.rb, line 39
      def corrections
        @corrections ||= begin
          maybe_these = routes&.named_routes&.helper_names&.grep(/#{route_name}/) || []
          maybe_these -= [method_name.to_s] # remove exact match

          DidYouMean::SpellChecker.new(dictionary: maybe_these).correct(route_name)
        end
      end
Register or log in to add new notes.