方法
- N
常量
DEFAULT_MESSAGE | = | "在此操作中多次调用了 render 和/或 redirect。请注意,您只能调用 render 或 redirect,并且每个操作最多只能调用一次。另外请注意,redirect 和 render 都不会终止操作的执行,因此如果您想在重定向后退出操作,您需要执行类似 \"redirect_to(...); return\" 的操作。" |
类公共方法
new(message = nil) 链接
源代码: 显示 | 在 GitHub 上
# File actionpack/lib/abstract_controller/rendering.rb, line 12 def initialize(message = nil) super(message || DEFAULT_MESSAGE) end