0

私は次のコードを持っています

<% form_tag  update_batting_order_tournament_path ,:complete => visual_effect(:appear, 'inning_update_success'), :method => :get, :remote => true do %>

基本的にdivを更新したい

イニングオーダーが更新されました!

私が書いたように、これは機能していません。正しいオプションが何であるかについてのアイデア

4

1 に答える 1

0

<%の代わりに<%=を使用してください。

   <%= form_tag  update_batting_order_tournament_path ,:complete => visual_effect(:appear, 'inning_update_success'), :method => :get, :remote => true do %>

詳細については、 http://edgeguides.rubyonrails.org/3_0_release_notes.html#helpers-with-blocksを参照してください。

于 2012-01-18T00:31:28.707 に答える