以下内容让我非常困惑:
第一个链接正确地没有使用涡轮链接,但没有发送查询第二个链接是相反的情况
= link_to 'yesturbo_noquery', "/controller/action", "data-no-turbolink" => true, query: "hello"
= link_to "noturbo_yesquery", {'data-no-turbolink' => true, :controller => "controller", :action => "action", :query => "hello" }
我如何使两者都起作用?
编辑,这工作感谢 Sikachu
= link_to 'yesturbo_yesquery', controller_action_path(:query => 'hello'), "data-no-turbolink" => true