Rails 3.1 remote requests submitting twice

后端 未结 2 1110
隐瞒了意图╮
隐瞒了意图╮ 2020-12-03 01:59

I developed a Rails 3.1 application that consists of a 100% Ajax CRUD forms to input users and customers. I created two separate models, controllers, views etc. The views

2条回答
  •  情书的邮戳
    2020-12-03 02:45

    Adding config.serve_static_assets = false to development.rb will prevent loading files from /public/assets.

    Actually I need to precompile locally because my test mode is using only static assets from /public/assets - tests are catching possible production asset problems. How? Just set config.assets.compile = false and config.serve_static_assets = true in test.rb configuration.

提交回复
热议问题