if RAILS_GEM_VERSION == '2.3.2' module ActionController module Routing class RouteSet def extract_request_environment(request) method = request.method if method == :post && request.env["QUERY_STRING"] == "_method=put" method = :put end { :method => method } end end end end end