【发布时间】:2016-07-21 07:22:13
【问题描述】:
rails4中如何处理link_to_remote
= link_to_remote("Remove ", :url => {:controller => 'task', :action => "remov"},
:confirm => "Remove Force Result Notes \nAre you sure you want to remove Force Result Notes from selected task allocation(s)?", :method => :post, :with => "'selected_ta=' + $$('.select_box:checked').map(function(e) { return e.value; }).join()",
:after => 'Waiting.saving();', :complete => 'Waiting.hide();',
:failure => "alert('faill!!!')",
:html => {:title => "Remove Notes"})
我对处理、处理和完成感到困惑。我也阅读了很多文章,但没有发现有帮助。
【问题讨论】:
-
@sebin 在这篇文章中我还没有发现可以使用 => JavaScript 表达式来指定 XMLHttpRequest 的参数。任何表达式都应该返回一个有效的 URL 查询字符串。
-
我希望你已经通过这个link
标签: ruby-on-rails ruby ruby-on-rails-4 ruby-on-rails-3.2