aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/abstract_controller/rendering.rb
diff options
context:
space:
mode:
authorPratik Naik <pratiknaik@gmail.com>2010-01-19 15:23:56 +0530
committerPratik Naik <pratiknaik@gmail.com>2010-01-19 15:23:56 +0530
commited8501ef16fb2f5e4bd4d987740f5e5f62978400 (patch)
tree430aade434901684b1fb26166f88b41064fb374b /actionpack/lib/abstract_controller/rendering.rb
parentb9599502c9e738a5a1513e75d08f8d40ed408265 (diff)
downloadrails-ed8501ef16fb2f5e4bd4d987740f5e5f62978400.tar.gz
rails-ed8501ef16fb2f5e4bd4d987740f5e5f62978400.tar.bz2
rails-ed8501ef16fb2f5e4bd4d987740f5e5f62978400.zip
Fix DoubleRenderError error message
Diffstat (limited to 'actionpack/lib/abstract_controller/rendering.rb')
-rw-r--r--actionpack/lib/abstract_controller/rendering.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/abstract_controller/rendering.rb b/actionpack/lib/abstract_controller/rendering.rb
index d57136dbb8..0dab4a3cc0 100644
--- a/actionpack/lib/abstract_controller/rendering.rb
+++ b/actionpack/lib/abstract_controller/rendering.rb
@@ -42,7 +42,7 @@ module AbstractController
# 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)