класс ActionController::RespondToMismatchError
Вызывается, когда срабатывает вложенный respond_to, и типы содержимого каждого из них несовместимы. Например:
respond_to do |outer_type|
outer_type.js do
respond_to do |inner_type|
inner_type.html { render body: "HTML" }
end
end
end
Константы
- DEFAULT_MESSAGE
Публичные методы класса
# File actionpack/lib/action_controller/metal/exceptions.rb, line 100 def initialize(message = nil) super(message || DEFAULT_MESSAGE) end
Вызывает метод суперкласса
© 2004–2020 David Heinemeier Hansson
Licensed under the MIT License.