From 5fa4159176eab712f9910cfa543861c14a968a78 Mon Sep 17 00:00:00 2001 From: Michel Felipe Date: Fri, 13 Feb 2015 15:12:37 -0300 Subject: [PATCH] Change tasks filter of 'get' to 'post' for a clean url --- app/views/tasks/index.html.erb | 2 +- test/functional/tasks_controller_test.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/tasks/index.html.erb b/app/views/tasks/index.html.erb index 62b7657..68601d8 100644 --- a/app/views/tasks/index.html.erb +++ b/app/views/tasks/index.html.erb @@ -21,7 +21,7 @@ <% end %> -<%= form_tag '#', :method => 'get' do %> +<%= form_tag '#', :method => 'post' do %> <%= field_set_tag _('Filter'), :class => 'filter_fields' do %>

diff --git a/test/functional/tasks_controller_test.rb b/test/functional/tasks_controller_test.rb index bff4dff..4476f93 100644 --- a/test/functional/tasks_controller_test.rb +++ b/test/functional/tasks_controller_test.rb @@ -50,7 +50,7 @@ class TasksControllerTest < ActionController::TestCase login_as profile_admin.identifier #Perform a http request to 'search_task' action with params - get :search_tasks, :filter_type =>'ModerateUserRegistration', :filter_text => 'Fak' + post :search_tasks, :filter_type =>'ModerateUserRegistration', :filter_text => 'Fak' assert_response :success -- libgit2 0.21.2