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 -

javascript - addthis share facebook and google+ url -

ios - Show keyboard with UITextField in the input accessory view -