ruby on rails - javascript overriding not working in production -


in app want override js file available in gem . problem m able override in development , working also

but in production calling js file gem not app app

if (city!='' && state!='') {     $('#location').val(city+', '+state).removeclass('defaulttextactive'); } 

gem

if (city!='' && state!=''&& pin!='') {     $('#location').val(city+', '+state+','+pin).removeclass('defaulttextactive'); } 

try out

clear precompiled assets, , regenerate them following rake tasks.

  rake assets:clean   rake assets:precompile rails_env=production 

Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -