simple normal form that’s submitting an action.
<form id="myAppSearchForm" method="get" action="<%= search_path %>">
<fieldset>
<div class="input-inside-label">
<label for="myAppSearchForm_searchstring">Search weavr</label>
<input id="myAppSearchForm_searchstring" name="search" class="search" title="enter search term" />
</div>
<button class="btn" name="myAppSearchFormSubmit" type="submit">GO</button>
</fieldset>
</form>
however I don’t get why the ID or name attribute of the Submitbutton gets added to the query string?
Like so: myurl/search?search=test&myAppSearchFormSubmit=
Any idea why that could happen?
That’s just how forms work. Drop the name attribute and the value of that button won’t be included in the params for the form submission.