# File lib/pry-rails/commands/recognize_path.rb, line 20 def process(path) method = (opts.m? ? opts[:m] : :get) routes = Rails.application.routes begin info = routes.recognize_path("http://#{path}", :method => method) rescue ActionController::UnknownHttpMethod output.puts "Unknown HTTP method: #{method}" rescue ActionController::RoutingError => e output.puts e end output.puts Pry::Helpers::BaseHelpers.colorize_code(info) end