I've got an issue that must come from my side but turning me crazy :-p
When I'm in development environment, I've to put these lines in application.html.erb
to have I18n.js
working :
<%= javascript_include_tag "i18n" %>
<%= javascript_include_tag "translations" %>
The problem is that on production environment, it doesn't work (it doesn't found the i18n.js
, 404, I know that's normal, due to the assets pipeline), I've to put these lines in application.js
:
//= require i18n
//= require i18n/translations
But if I leave these like that, I've got an error in development environment : uninitialized constant SimplesIdeias
It works for all the rest of my scripts, only i18n.js
got a problem to load.
What is the way to make them both works ? :p