Created
September 5, 2013 16:19
-
-
Save PallaviTS/6452462 to your computer and use it in GitHub Desktop.
How do we set rails-timeago for different languages ?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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