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" %>