From f9ed0cce2330fdc23e75f5bdf913ab5a87c9b147 Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Tue, 18 Feb 2014 14:19:05 -0300 Subject: [PATCH] rails3: fix button with specified format --- app/views/users/_index_buttons.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/users/_index_buttons.html.erb b/app/views/users/_index_buttons.html.erb index 63add14..17e2893 100644 --- a/app/views/users/_index_buttons.html.erb +++ b/app/views/users/_index_buttons.html.erb @@ -1,6 +1,6 @@ <% button_bar do %> - <%= button :'text-plain', _('User list as [CSV]'), :action => :download, :format => 'csv' %> - <%= button :'text-html', _('User list as [XML]'), :action => :download, :format => 'xml' %> + <%= button :'text-plain', _('User list as [CSV]'), :action => 'download.csv' %> + <%= button :'text-html', _('User list as [XML]'), :action => 'download.xml' %> <%= button :send, _('Send e-mail to all users'), :action => 'send_mail' %> <%= button :back, _('Back'), :controller => 'admin_panel' %> <% end %> -- libgit2 0.21.2