From 74f390d5c93e0d4aade25e10b7b90c89568b690f Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Tue, 12 Jan 2016 18:17:58 +0800 Subject: [PATCH] new course redirection fixed --- app/controllers/admin/courses_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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