# Button\_to with "GET" and extra parameters

**URL:** <https://www.ruby-forum.com/t/button-to-with-get-and-extra-parameters/109422>\
**Category:** Rails\
**Created:** [July 14, 2007, 6:18pm UTC](https://www.ruby-forum.com/t/button-to-with-get-and-extra-parameters/109422 "2007-07-14T18:18:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sjf\_control](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c68b51/32.png) [@sjf\_control](https://www.ruby-forum.com/u/sjf_control)\
**Post date:** [July 14, 2007, 6:18pm UTC](https://www.ruby-forum.com/t/button-to-with-get-and-extra-parameters/109422/1 "2007-07-14T18:18:14Z")

</div>

I have the following in one of my views:

```
 <%= button_to 'Edit', {:action => 'edit_mbr_cit', :id =>

```

@member, :extra =\> @citation}, :method =\> ‘get’%\>

This generates resaonable HTML as follows:

However, when clicked, the “GET” request does not have the “extra”  
parameter, as shown below:

Processing GateaccessController#edit\_mbr\_cit (for 127.0.0.1 at  
2007-07-14 11:12:51) [GET]  
Session ID: e1d723aad01fa7332de579a7bd15f59e  
Parameters: {“action”=\>“edit\_mbr\_cit”, “id”=\>“7641”,  
“controller”=\>“gateaccess”}

Can somebody explain why the controller isn’t receiving what the HTML  
says it should be generating?

Thanks
