class RespondToMismatchError

Ruby on Rails 6.0.6

Since v6.0.6

Available in: v6.0.6 v6.1.7.10 v7.0.10 v7.1.6 v7.2.3 v8.0.4 v8.1.2

Raised when a nested respond_to is triggered and the content types of each are incompatible. For example:

respond_to do |outer_type|
  outer_type.js do
    respond_to do |inner_type|
      inner_type.html { render body: "HTML" }
    end
  end
end

Inherits from

ActionController::ActionControllerError

Constants

Methods (defined here)

Type at least 2 characters to search.

↑↓ navigate · open · esc close