17 Jun '14, 2pm

Foolproof I18n Setup in Rails

Gabe Berke-Williams June 17, 2014 rails Let’s make I18n on Rails better, quickly and easily. These tips have helped us here at thoughtbot and caught some easy-to-fix but hard-to-track-down mistakes. Raise an exception on missing translations When a translation is missing, Rails will fall back to a default translation. For example the code t(:hello) will output "hello" if there is no provided translation for :hello . This is almost certainly not what you want, especially for more complicated I18n keys like t('users.sign_in') . Most versions of Rails include a way to raise exceptions when a translation is missing. Raising an exception ensures that all of your calls to t() are using your copy, instead of using a default string. I recommend raising exceptions in the test and development environments, so that you can find missing translations by running tests and by browing aro...

Full article: http://robots.thoughtbot.com/foolproof-i18n-setup-in-rails

Tweets

Foolproof I18n Setup in Rails

rubyflow.com 17 Jun '14, 6pm

Foolproof I18n Setup in Rails Posted by croaky on June 17, 2014 — 0 comments Let’s make I18n on Rails better, quickly and ...

"Fast, consistent setup for your Ruby and Rails...

rubyflow.com 17 Jun '14, 4pm

Fast, consistent setup for your Ruby and Rails tools Posted by justinweiss on June 17, 2014 — 0 comments After you build a...

Laptop Setup for an Awesome Development Environ...

robots.thoughtbot.com 18 Jun '14, 4pm

We’ve published guides in 2009 , 2011 , and 2012 for setting up your Mac OS X laptop as a Ruby on Rails development machin...

There's a gem for just about everything. Neeeee...

railscasts.com 16 Jun '14, 8pm

With rich client-side applications becoming more popular a common question is “Should I use Rails if all I need to do is p...

@buritica 5/13 miembros de Rails Core son de La...

rubyonrails.org 17 Jun '14, 6pm

David Heinemeier Hansson extracted Ruby on Rails from his work on Basecamp . He released the framework as open source in J...

How Rails' Type Casting Works

robots.thoughtbot.com 16 Jun '14, 4pm

Have you ever noticed that when you assign a property to an Active Record model and read it back, the value isn’t always t...

How Rails' Type Casting Works

rubyflow.com 17 Jun '14, 6pm

Posted by croaky on June 17, 2014 — 0 comments Have you ever noticed that when you assign a property to an Active Record m...

Persisting Rails models in Elasticsearch

rubyflow.com 18 Jun '14, 11am

Persisting Rails models in Elasticsearch Posted by karmiq on June 18, 2014 — 0 comments A new version of the elasticsearch...

Scriptable Laptop Setup for an Awesome Developm...

rubyflow.com 18 Jun '14, 4pm

Scriptable Laptop Setup for an Awesome Development Environment Posted by croaky on June 18, 2014 — 0 comments Don't manual...

We explain a new feature in Rails 4.1: Action Pack variants

We explain a new feature in Rails 4.1: Action P...

reinteractive.net 20 Jun '14, 3am

And that's all there is to it. Variants are an extremely powerful new feature of Rails, particularly because of their flex...

Rails 4.1.2.rc2 and 4.0.6.rc2 released! If no r...

weblog.rubyonrails.org 16 Jun '14, 5pm

I am happy to announce that Rails 4.1.2.rc2 and 4.0.6.rc2 have been released. We had a regression with the protected_attri...

80% Off LimTime Learn Ruby on Rails from Scratc...

udemy.com 19 Jun '14, 4pm

This course teaches you the amazing and powerful technology of Ruby on Rails. This technology forms the backend of amazing...

Rochkind, Jonathan: Ascii-ization transliterati...

bibwild.wordpress.com 26 Jun '14, 4pm

A while ago, I was looking for a way in ruby to turn text with diacritics (é) and ligatures (Æ) and other such things into...

Hah six years old and nothing’s changed - #rails

robots.thoughtbot.com 19 Jun '14, 3am

Jared Carroll May 29, 2007 rails So recently, I had a Rails app that raised the following exception: ActiveRecord::Multipa...

#RubyOnRails Ruby on Rails Front-end coder need...

freelancer.com 20 Jun '14, 6am

We are looking for a ruby on rails front end coder to work with us for the next 12 hours. You will do couple of tasks. 1. ...