Forum: Ruby on Rails button_to with "GET" and extra parameters

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
6d33c4545885545ef2073e816232339e?d=identicon&s=25 sjf_control (Guest)
on 2007-07-14 18:18
(Received via mailing list)
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:
<form method="get" action="/gateaccess/edit_mbr_cit/7641?extra=11"
class="button-to"><div><input type="submit" value="Edit" /></div></

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

Processing GateaccessController#edit_mbr_cit (for at
2007-07-14 11:12:51) [GET]
  Session ID: e1d723aad01fa7332de579a7bd15f59e
  Parameters: {"action"=>"edit_mbr_cit", "id"=>"7641",

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

This topic is locked and can not be replied to.