Browse files

Fix DoubleRenderError error message

  • Loading branch information...
1 parent b959950 commit ed8501ef16fb2f5e4bd4d987740f5e5f62978400 @lifo lifo committed Jan 19, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/abstract_controller/rendering.rb
View
2 actionpack/lib/abstract_controller/rendering.rb
@@ -42,7 +42,7 @@ def view_context
# Delegates render_to_body and sticks the result in self.response_body.
def render(*args)
if response_body
- raise AbstractController::DoubleRenderError, "OMG"
+ raise AbstractController::DoubleRenderError, "Can only render or redirect once per action"
end
self.response_body = render_to_body(*args)

0 comments on commit ed8501e

Please sign in to comment.