Permalink
Browse files

Made an example a little more realistic

  • Loading branch information...
1 parent bb78804 commit 96d4da1719bc10c5ccc039e799e3ce87eab94256 @codesnik codesnik committed with vijaydev Jan 6, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 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"

0 comments on commit 96d4da1

Please sign in to comment.