当触发嵌套的 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
方法
- N
常量
| DEFAULT_MESSAGE | = | "respond_to 被调用了多次,并在本次操作中匹配到了冲突的格式。请注意,每个操作中只能调用一次 respond_to 并匹配一种格式。" |
类公共方法
new(message = nil) 链接
来源: 显示 | 在 GitHub 上
# File actionpack/lib/action_controller/metal/exceptions.rb, line 91 def initialize(message = nil) super(message || DEFAULT_MESSAGE) end