<%= link_to "", { :controller => 'board',
:action => 'take_turn',
:id => @board.id,
:x => col,
:y => row }, :remote => true do %>
产生:Ruby on rails3:Link_to无法正常工作?
<a href="" action="take_turn" controller="board" id="15" x="0" y="1">
<div class="ttt_square">
</div>
</a>
为什么不工作的权利?它应该生成
我得到语法错误,意外tASSOC,期待'当我摆脱了e空字符串。 = \ – NullVoxPopuli 2011-01-30 22:10:57
将`link_to`的参数也包含在圆括号中。 – 2011-01-30 22:12:54