mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Made an example a little more realistic
This commit is contained in:
parent
621eb3b666
commit
6e4183fabb
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue