change some routes bug

This commit is contained in:
stormand 2017-01-04 13:44:53 +08:00
parent 3e57389f1e
commit afc4af4ec1
2 changed files with 5 additions and 5 deletions

View File

@ -8,13 +8,12 @@
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title">选修课程</h3>
<%= @theparams %>
</div>
<br>
<%= form_tag("/courses/search", method: "get") do %>
<%= link_to '', refresh_search_courses_path, :class => "btn btn-md glyphicon glyphicon-refresh" %>
<%= text_field_tag(:name, @theparams[:name] ) %>
<select name="credit" id="credit" multiple="multiple">
<select name="credit" id="credit">
<option value="">所有课时学分</option>
<% @course_display.select("credit").distinct.each do |ct| %>
<option value=<%= ct.credit %> <%= selected="selected" if @theparams[:credit]==ct.credit %>> * <%= ct.credit %></option>

View File

@ -26,15 +26,16 @@ Rails.application.routes.draw do
get :detail
get :open
get :close
get :classtable
get :isdegree #add route isdegree
get :nodegree #add route nodegree
patch :excel_in
patch :excel_out
end
collection do
get :list
get :excel
get :classtable
get :isdegree #add route isdegree
get :nodegree #add route nodegree
end
collection do
get :list