#1688修改竞赛搜索报404
This commit is contained in:
parent
a69fdfe1ed
commit
0044f17fba
|
@ -37,7 +37,7 @@ class ContestsController < ApplicationController
|
|||
|
||||
|
||||
def index
|
||||
render_404
|
||||
render_404 unless params[:name]
|
||||
# @contests = Contest.visible
|
||||
# @contests ||= []
|
||||
@offset, @limit = api_offset_and_limit(:limit => 10)
|
||||
|
|
Loading…
Reference in New Issue