method

type_conflict!

rails latest stable - Class: ActionController::UrlEncodedPairParser

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.2.1) is shown here.

type_conflict!(klass, value)
private

No documentation available.

# File actionpack/lib/action_controller/request.rb, line 833
      def type_conflict!(klass, value)
        raise TypeError, "Conflicting types for parameter containers. Expected an instance of #{klass} but found an instance of #{value.class}. This can be caused by colliding Array and Hash parameters like qs[]=value&qs[key]=value. (The parameters received were #{value.inspect}.)"
      end