change some routes bug
This commit is contained in:
parent
3e57389f1e
commit
afc4af4ec1
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue