how to use link_to with ajax in rails 3.2.1

前端 未结 2 1432
说谎
说谎 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:29

    Use $("#allclick") not $("allclick"), you missed the "#" ;)

    0 讨论(0)
  • 2021-01-25 05:41

    try using html instead of update:

    $("#allclick").html("<%= escape_javascript(render(:partial => "goclick")) %>");
    
    0 讨论(0)
提交回复
热议问题