Answer the question
In order to leave comments, you need to log in
How to remove unnecessary parameters from a form?
Hello!
There is the following form:
<%= form_tag({controller: "static_pages", action: "search"}, method: "get") do %>
<%= text_field_tag "number", "Поиск по артиклу (номеру детали)", class: "part_search_field", onClick: "if(this.value='Поиск по артиклу (номеру детали)')this.value=''",
onBlur: "if(this.value=='')this.value='Поиск по артиклу (номеру детали)'" %>
<%= submit_tag :"Search", class: "part_search_button" %>
<% end %>
Parameters: {"utf8"=>"✓", "number"=>"13.0460-5996.2", "commit"=>"Search"}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question