[Rails] Re: Destructive behavior with link_to, button_to,
:post=>tru
Tom Mornini
tmornini at infomania.com
Sun Jan 22 21:39:57 GMT 2006
On Jan 22, 2006, at 12:26 PM, Kevin Olbrich wrote:
>> Do I need to add a Javascript thing to go fetch that value from the
>> selection item? Then add the selected "id" to the link?
>>
>> Jake
>
> link_to {:action=>'action', :id=>object.id}, {:post=>true}
link_to {:action=>'action', :id=>object}, {:post=>true}
.id is assumed.
Rails is about less code... :-)
--
-- Tom Mornini
More information about the Rails
mailing list