From a3970dde8a712c6d07f27c556d0a4c6630bb7351 Mon Sep 17 00:00:00 2001 From: alexs Date: Fri, 16 Aug 2013 10:18:46 +1000 Subject: [PATCH] Forcing POST for the search form. --- app/views/home/new_landing_page.html.haml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/home/new_landing_page.html.haml b/app/views/home/new_landing_page.html.haml index 4a8bcdf23a..637b60ff69 100644 --- a/app/views/home/new_landing_page.html.haml +++ b/app/views/home/new_landing_page.html.haml @@ -10,7 +10,8 @@ = form_tag search_enterprises_path do .large-10.columns = text_field_tag :suburb_search, "", - data: { autocomplete_source: suburbs_path }, class: "right", placeholder: "Enter your suburb or postcode..." + data: { autocomplete_source: suburbs_path }, class: "right", placeholder: "Enter your suburb or postcode...", + html: { method: :post } = hidden_field_tag :suburb_id .large-2.columns = submit_tag "Search", class: "button-huge"