From 97bae885215a1471a0a550ad32dd8b5e7e85d964 Mon Sep 17 00:00:00 2001 From: Larissa Reis Date: Wed, 6 Nov 2013 21:12:56 -0300 Subject: [PATCH] Fixes Cancel button --- plugins/custom_forms/views/custom_forms_plugin_profile/show.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/custom_forms/views/custom_forms_plugin_profile/show.html.erb b/plugins/custom_forms/views/custom_forms_plugin_profile/show.html.erb index fb180ec..71f46e3 100644 --- a/plugins/custom_forms/views/custom_forms_plugin_profile/show.html.erb +++ b/plugins/custom_forms/views/custom_forms_plugin_profile/show.html.erb @@ -13,7 +13,7 @@ <%= render :partial => 'shared/form_submission', :locals => {:f => f} %> <% button_bar do %> - <%= submit_button :save, _('Save'), :cancel => {:action => 'index'} %> + <%= submit_button :save, _('Save'), :cancel => {:controller => :profile, :profile => profile.identifier} %> <% end %> <% end %> <% else %> -- libgit2 0.21.2