Rails form_for :remote=>true is not calling js method

前端 未结 7 1724
感情败类
感情败类 2020-12-01 09:11

I have no idea why this is not working, I\'m learning rails and I\'m following a book it says to do it like this:

    <%= form_for([@article,@article.comm         


        
7条回答
  •  臣服心动
    2020-12-01 09:59

    Change:

    [@article,@article.comments.new ] 
    

    for

    @article
    

    I suggest you reading the API on the related section : http://api.rubyonrails.org/classes/ActionView/Helpers/FormHelper.html

提交回复
热议问题