#1331 创新竞赛:点击竞赛“ 2014 年 Android 程序设计竞赛 ”返回404错误 原因,1、路由缺失,补上路由。2、更多链接处加上参数。3、对应show_contest_user方法中一个@users写错成@uers修正之
This commit is contained in:
parent
6a41ccbc7c
commit
ddca1a0316
|
@ -258,7 +258,7 @@ class ContestsController < ApplicationController
|
|||
|
||||
contests.each do |contest|
|
||||
contest.projects.each do |project|
|
||||
@uers += project.users
|
||||
@users += project.users
|
||||
end
|
||||
end
|
||||
# end
|
||||
|
|
|
@ -179,9 +179,9 @@
|
|||
<div class="user_underline"></div>
|
||||
<div class="font_title_left">
|
||||
<strong><%= l(:label_x_followers, :count => @contest.watcher_users.count) %></strong>
|
||||
<!-- <% if show_more_fans?(@contest) %>
|
||||
<span style="display:inline-block; font-size: 12px; float:right; margin-bottom: -4px;"><%= link_to l(:label_more), :controller => 'contests', :action => 'show_contest_user'%></span>
|
||||
<% end %> -->
|
||||
<% if show_more_fans?(@contest) %>
|
||||
<span style="display:inline-block; font-size: 12px; float:right; margin-bottom: -4px;"><%= link_to l(:label_more), show_contest_user_contest_path(@contest) %></span>
|
||||
<% end %>
|
||||
</div>
|
||||
<div class="left_wf">
|
||||
<table>
|
||||
|
|
|
@ -132,6 +132,7 @@ RedmineApp::Application.routes.draw do
|
|||
match 'add_softapplication' , :via => [:get, :post]
|
||||
match 'create' , :via => :post
|
||||
match 'settings' , :via => [:get, :post]
|
||||
match 'show_contest_user'
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue