2013-08-16 52 views
0

在我的应用程序我想重写一个js文件已经可用的宝石。现在的问题是即时通讯能够覆盖它的发展和它的正常工作也JavaScript重写不生产在工作

,但在生产中从宝石调用它的js文件没有从我的应用程序 我的应用程序

if (city!='' && state!='') { 
    $('#Location').val(city+', '+state).removeClass('defaultTextActive'); 
} 

宝石

if (city!='' && state!=''&& pin!='') { 
    $('#Location').val(city+', '+state+','+pin).removeClass('defaultTextActive'); 
} 

回答

0

试一试

清除所有预编译的资源,并用以下rake任务重新生成它们。

rake assets:clean 
    rake assets:precompile RAILS_ENV=production 
+0

喜即时得到波纹错误时尝试耙资产:清洁/home/swagata/.rvm/rubies/ruby-1.9.3-p448/bin/ruby /home/swagata/.rvm/gems/ruby- [email protected]/bin/rake assets:clean:所有RAILS_ENV =生产RAILS_GROUPS =资产我试图安装gem install activerecord-postrgesql-adapter 得到像ERROR一样的错误:找不到有效的gem'activerecord-postrgesql-适配器'(> = 0) rake中止! 请安装postegresql适配器:'gem install activerecord-postegresql-adapter'(无法加载这样的文件--active_record/connection_adapters/postegresql_adapter) –