Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 18th, 2012  |  syntax: None  |  size: 0.31 KB  |  hits: 18  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Locale specific javascript files with assets pipeline
  2. alert(<%= I18n.t('javascript.key.name') %>)
  3.        
  4. config.assets.localized_precompile = ['application-it.js', 'application-fr.js', 'application-de.js', 'application-en.js']
  5.        
  6. =javascript_include_tag "application-#{I18n.locale}"
  7.        
  8. //= require application