how to use link_to with ajax in rails 3.2.1

前端 未结 2 1435
说谎
说谎 2021-01-25 05:09

I m using Rails 3.2.1. how to use link_to with remote=>true

My Method in Controller

def clickme
    @clk = \"you click          


        
2条回答
  •  无人共我
    2021-01-25 05:41

    try using html instead of update:

    $("#allclick").html("<%= escape_javascript(render(:partial => "goclick")) %>");
    

提交回复
热议问题