I’ve fixed all the errors about “xxx” is not compiled and all the assets show up — when running locally everything works fine:
- All ajax requests work
- Form submissions use the rails remote tag and fire off properly
However when running in production mode locally (and on Heroku):
- Some ajax will work — however things like PUT’s that should be updatating records (and do in dev) don’t… They will hit the page but not do the actual database update
- Remote forms are completely broken and resulting in regular form submission
The source can be cloned from here: https://github.com/bluescripts/reru_scrum
Maybe I’m miscompiling the assets wrong or maybe I’m missing an appropriate include in my application.js file?
I’ve been compiling via:
rake assets:precompile
You’re missing
//= require jquery_ujsin yourapplication.js. This file comes withjquery-railsgem and is responsible besides other things for handling remote links and forms.Btw, I’d suggest removing
.Gemfile.swpfrom your repo and adding.*.swpto.gitignore.