I have a simple jquery-(ujs) script that adds some values in different fields on a page. (NO AJAX)
This runs fine in rails 3.2 development mode, however it doesn't run in production mode at all.
application.js file is :
//= require jquery
//= require jquery_ujs
//= require_tree .
(And I have my adder_func.js files in this directory) ..
I have the 'jquery-rails' in the Gemfile -- done bundle update .. I have regenerated the asset pipeline with
rake assets:clean
rake assets:precompile
However in the the production mode, editing the fields doesn't update the related fields ..
Same application run in development mode with
rails s
localhost:3000/pagexxx and javascript works ..
with phusion-passenger -- apache2 localhost:80/pagexxx everything works fine except javacscript.
Stylesheets and images etc. are all being delivered from the single file "application.css" and there is an "applicaton.js" being loaded with my functions in it. there are no errors on the console with javascript. It's an asset pipleline issue .. but I can't see what I am doing wrong.