Handy resource for keywords: http://ruby-doc.org/docs/keywords/1.9/
This doc: http://bit.ly/1EqHNPH
Handy resource for keywords: http://ruby-doc.org/docs/keywords/1.9/
This doc: http://bit.ly/1EqHNPH
### Gemfile | |
gem 'redis', '~> 3.0.2' | |
gem 'redis-rails', '~> 3.2.3' | |
### as initializer or in application.rb | |
$redis = Redis.new(:host => 'localhost', :port => 6379) | |
# delete all i18n keys before so they will be reloaded | |
$redis.keys.find_all{|k| k.start_with? "i18n"}.each {|k| $redis.del k} |