<%= 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