我有这个link_to_function
= link_to_remote 'Populate Info From ID', :url => {:controller => 'something',
:action => 'populate_from_id'},
:with => "'id=' + $('account_id').value + '&field_prefix=purchaser'",
:update => {:failure => 'account_id_error'}
我已经在 Rails 升级中转换了其中许多, :remote => true, :method => :post
但我不知道如何添加条件来获取价值......任何想法