Forcing POST for the search form.

This commit is contained in:
alexs
2013-08-16 10:18:46 +10:00
parent 4e715f62a2
commit a3970dde8a

View File

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