I\'m having a trouble with rails3 to render Javascript (If this is relevant, I use JQuery and it works fine since it\'s used in numerous other parts of the application) inst
If you are on rails,
Simple fix: Add data-type="script" to the form. Source: https://github.com/rails/jquery-ujs/wiki/Unobtrusive-scripting-support-for-jQuery