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

前端 未结 7 1700
感情败类
感情败类 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

    0 讨论(0)
提交回复
热议问题