diff options
author | codesnik <aronaxis@gmail.com> | 2012-01-07 02:57:51 +0400 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2012-01-11 20:24:17 +0530 |
commit | 96d4da1719bc10c5ccc039e799e3ce87eab94256 (patch) | |
tree | be47e4b074fd00ddb77a945bd768d8214a202ad6 | |
parent | bb78804a5e382bde072186e80062f7df9f20ecc8 (diff) | |
download | rails-96d4da1719bc10c5ccc039e799e3ce87eab94256.tar.gz rails-96d4da1719bc10c5ccc039e799e3ce87eab94256.tar.bz2 rails-96d4da1719bc10c5ccc039e799e3ce87eab94256.zip |
Made an example a little more realistic
-rw-r--r-- | actionpack/lib/action_controller/base.rb | 2 |
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" |