diff options
author | codesnik <aronaxis@gmail.com> | 2012-01-07 02:57:51 +0400 |
---|---|---|
committer | codesnik <aronaxis@gmail.com> | 2012-01-07 02:57:51 +0400 |
commit | 6e4183fabbd08449e3f3a62386367a19b19579eb (patch) | |
tree | 2e3bb05a26e5ca7338681539d9e40fcc26369b65 /actionpack/lib | |
parent | 621eb3b666f2df84b7d40d5074eb033204d38146 (diff) | |
download | rails-6e4183fabbd08449e3f3a62386367a19b19579eb.tar.gz rails-6e4183fabbd08449e3f3a62386367a19b19579eb.tar.bz2 rails-6e4183fabbd08449e3f3a62386367a19b19579eb.zip |
Made an example a little more realistic
Diffstat (limited to 'actionpack/lib')
-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" |