# How to pass additional get parameters using button\_to?

**URL:** <https://www.ruby-forum.com/t/how-to-pass-additional-get-parameters-using-button-to/162099>\
**Category:** Rails\
**Created:** [March 5, 2009, 6:32pm UTC](https://www.ruby-forum.com/t/how-to-pass-additional-get-parameters-using-button-to/162099 "2009-03-05T18:32:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dennis\_T](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/6de8d8/32.png) [@Dennis\_T](https://www.ruby-forum.com/u/Dennis_T)\
**Post date:** [March 5, 2009, 6:32pm UTC](https://www.ruby-forum.com/t/how-to-pass-additional-get-parameters-using-button-to/162099/1 "2009-03-05T18:32:00Z")

</div>

A google search only turned up a few posts with the same problem, but  
no answer…

Problem:

\<%= button\_to(“New user”, new\_user\_path(:testvar1 =\>  
“test1”, :testvar2 =\> “test2”), :method =\> :get) %\>

generates:

Which doesn’t work as browsers strip the get parameters off the uri.  
Shouldn’t the button\_to-helper generate the get parameters as hidden  
tags when using :method =\> :get?

Like this?

Is this possible or are there another solution when using button\_to?
