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