毕设选题添加到题库报404

dev_course
daiao 6 years ago
parent 9dc64c9993
commit f3a6f3bbf7

@ -2,8 +2,6 @@ class CoursesController < ApplicationController
include MessagesHelper
include ExportHelper
rescue_from ::ActionView::MissingTemplate, with: :missing_template
rescue_from ActiveRecord::RecordNotFound, with: :object_not_found
# model validation error
rescue_from ActiveRecord::RecordInvalid do |ex|
render_error(ex.record.errors.full_messages.join(','))

@ -3,7 +3,7 @@ class GraduationTopicsController < ApplicationController
before_action :find_course
before_action :teacher_allowed, only: [:new, :create, :update, :edit, :destroys, :set_public,
:refuse_student_topic, :accept_student_topic, :export]
before_action :find_graduation_topic, except: [:index, :create, :new, :set_public, :destroys, :export]
before_action :find_graduation_topic, except: [:index, :create, :new, :set_public, :destroys, :export, :add_to_bank]
before_action :find_course_teachers, only: [:new, :edit]
before_action :user_course_identity, only: [:index, :show, :show_detail, :show_comment]

Loading…
Cancel
Save