Jquery Rails 3… form submits twice… deletes twice… help

前端 未结 4 864
盖世英雄少女心
盖世英雄少女心 2020-12-18 11:21

It seems like eveyone has this problem but no one has a laymans terms answer or even a proper solutions.

I have a form that uses ajax to submit the form and automati

4条回答
  •  天涯浪人
    2020-12-18 12:11

    I had the same problem on Rails 4. I had these settings in my development.rb:

    config.assets.digest = true
    config.assets.enabled = true

    I deleted these and ran rake assets:clean

    Now its submits like it should.

提交回复
热议问题