Skip to content

Instantly share code, notes, and snippets.

@PallaviTS
Created September 5, 2013 16:19
Show Gist options
  • Save PallaviTS/6452462 to your computer and use it in GitHub Desktop.
Save PallaviTS/6452462 to your computer and use it in GitHub Desktop.
How do we set rails-timeago for different languages ?
I created a timeago.rb in config/initializers
Rails::Timeago.default_options :limit => proc { 20.days.ago }, :nojs => true
Rails::Timeago.locales = [:en, :ja, :it]
But where do I place the jquery.timeago.XX.js files ??
Rails::Timeago.locales ---> where does it look for all the locale files ??
Im getting locales not found
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment