From 5c4e2857b80a3f6ce7cb086d4621bace0e12b7d1 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Wed, 30 Dec 2015 00:50:29 +0800 Subject: [PATCH] cancel button fixed --- app/views/admin/courses/_form.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/courses/_form.html.erb b/app/views/admin/courses/_form.html.erb index 52ba887..d53d5ad 100644 --- a/app/views/admin/courses/_form.html.erb +++ b/app/views/admin/courses/_form.html.erb @@ -183,7 +183,7 @@ <%= f.hidden_field :user_id, :value => params[:user_id] if !params[:user_id].blank? %> <%= f.submit t('submit'), class: 'btn btn-primary' %> - <%= link_to t('cancel'), get_go_back, :class=>"btn" %> + <%= link_to t('cancel'), request.referer, :class=>"btn" %>