I18n and "undefined method each for false:FalseClass"

I’ve never really had much need for Rails’ i18n support, but a new project is going to be using it extensively. I was a bit thrown by an error that started to be thrown after I created the relevant locale files, and took a while to track it down (possibly because I was also upgrading to the Rails 3 RC at the same time).

It turns out Rails really doesn’t like empty locale files. Adding a couple of translations into my empty files solved everything.

Seemed worth sharing as it took me a while to track down comparable experiences online.

Tags: , ,


  1. Thank you! I never would have thought that was the reason for it. Thank you!