load partial with jquery and rails

后端 未结 5 1360
深忆病人
深忆病人 2021-01-04 23:54

Im curious about what the best way to load a rails partial with jquery. So far I have tried a solution not working:

$(\'#imagecontent\').load(\'/newsletters/         


        
5条回答
  •  执笔经年
    2021-01-05 00:19

    Here's what you want:

    http://www.slideshare.net/JamesEdwardGrayII/ajax-with-jquery-in-rails

提交回复
热议问题