aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller
diff options
context:
space:
mode:
authorcodesnik <aronaxis@gmail.com>2012-01-07 02:57:51 +0400
committerVijay Dev <vijaydev.cse@gmail.com>2012-01-11 20:24:17 +0530
commit96d4da1719bc10c5ccc039e799e3ce87eab94256 (patch)
treebe47e4b074fd00ddb77a945bd768d8214a202ad6 /actionpack/lib/action_controller
parentbb78804a5e382bde072186e80062f7df9f20ecc8 (diff)
downloadrails-96d4da1719bc10c5ccc039e799e3ce87eab94256.tar.gz
rails-96d4da1719bc10c5ccc039e799e3ce87eab94256.tar.bz2
rails-96d4da1719bc10c5ccc039e799e3ce87eab94256.zip
Made an example a little more realistic
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r--actionpack/lib/action_controller/base.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/base.rb b/actionpack/lib/action_controller/base.rb
index 98bfe72fef..b6d441d544 100644
--- a/actionpack/lib/action_controller/base.rb
+++ b/actionpack/lib/action_controller/base.rb
@@ -121,7 +121,7 @@ module ActionController
#
# def search
# @results = Search.find(params[:query])
- # case @results
+ # case @results.count
# when 0 then render :action => "no_results"
# when 1 then render :action => "show"
# when 2..10 then render :action => "show_many"