在respond_with中指定flash

时间:2011-12-23 11:23:22

标签: ruby-on-rails ruby-on-rails-3 respond-with

Rails 3有a nice feature来保存单独一行的闪存:

redirect_to @product, :notice => "Successfully created product."

respond_with会很棒,但不支持。有没有办法覆盖respond_with以获取可选的Flash哈希?

0 个答案:

没有答案