This commit is contained in:
parent
fab4d754d9
commit
3e57389f1e
|
@ -133,25 +133,6 @@
|
|||
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_OPTION_PREREQS" VALUE="false" />
|
||||
<method />
|
||||
</configuration>
|
||||
<configuration default="false" name="product_controller" type="RubyRunConfigurationType" factoryName="Ruby" temporary="true">
|
||||
<module name="vim" />
|
||||
<RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
||||
<RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="$MODULE_DIR$/app/models" />
|
||||
<RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
|
||||
<RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
|
||||
<RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
|
||||
<envs />
|
||||
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
||||
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
||||
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
||||
<COVERAGE_PATTERN ENABLED="true">
|
||||
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
||||
</COVERAGE_PATTERN>
|
||||
</EXTENSION>
|
||||
<RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$MODULE_DIR$/app/models/product_controller.rb" />
|
||||
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
|
||||
<method />
|
||||
</configuration>
|
||||
</component>
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$">
|
||||
|
|
|
@ -8,12 +8,13 @@
|
|||
<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">
|
||||
<select name="credit" id="credit" multiple="multiple">
|
||||
<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>
|
||||
|
|
14
db/schema.rb
14
db/schema.rb
|
@ -11,13 +11,8 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
|
||||
ActiveRecord::Schema.define(version: 20161228082748) do
|
||||
|
||||
ActiveRecord::Schema.define(version: 20161207102921) do
|
||||
|
||||
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
|
||||
|
@ -39,9 +34,8 @@ ActiveRecord::Schema.define(version: 20161207102921) do
|
|||
t.string "course_introduction"
|
||||
t.string "avatar"
|
||||
t.boolean "open", default: false
|
||||
t.string "excel"
|
||||
t.boolean "degree", default: false
|
||||
|
||||
t.string "excel"
|
||||
end
|
||||
|
||||
create_table "grades", force: :cascade do |t|
|
||||
|
@ -55,6 +49,12 @@ ActiveRecord::Schema.define(version: 20161207102921) do
|
|||
add_index "grades", ["course_id"], name: "index_grades_on_course_id", using: :btree
|
||||
add_index "grades", ["user_id"], name: "index_grades_on_user_id", using: :btree
|
||||
|
||||
create_table "images", force: :cascade do |t|
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.string "image"
|
||||
end
|
||||
|
||||
create_table "users", force: :cascade do |t|
|
||||
t.string "name"
|
||||
t.string "email"
|
||||
|
|
Loading…
Reference in New Issue