diff --git a/app/controllers/admin/courses_controller.rb b/app/controllers/admin/courses_controller.rb index 799c1cf..12bc3c7 100644 --- a/app/controllers/admin/courses_controller.rb +++ b/app/controllers/admin/courses_controller.rb @@ -19,7 +19,7 @@ class Admin::CoursesController < OrbitMemberController def create course = Course.create(course_params) - redirect_to admin_courses_path + redirect_to params[:referer_url] end def show