ruby - Different javascript loading process between Production and Development environments -


i've got issue must come side turning me crazy :-p

when i'm in development environment, i've put these lines in application.html.erb have i18n.js working :

<%= javascript_include_tag "i18n" %> <%= javascript_include_tag "translations" %> 

the problem on production environment, doesn't work (it doesn't found i18n.js, 404, know that's normal, due assets pipeline), i've put these lines in application.js :

//= require i18n //= require i18n/translations 

but if leave these that, i've got error in development environment : uninitialized constant simplesideias

it works rest of scripts, i18n.js got problem load.

what way make them both works ? :p


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -