Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Joseph Williams
10,675 PointsIssue with RubyMoney after installing the gem
when trying to use puts price, I get the following error:
I18n::invalid locale: :en is not a valid locale when puts
When I downloaded the money gem, the output revealed that only one gem was installed rather than the 3 installed on Jason's screen in the video.
1 Answer
Kenan Memis
47,314 PointsHi,
First of all there was some problems with I18n gem of version 0.8.6. Please upgrade the gem version if you are using that version.
Second, in your application if it is a rails 4 app the enforce_available_locales config is by default set to true. That means, it forces the app to look for available locales. Be sure that both :en is setted as an available_locale and you have en.yml file under config/locales/ directory.
Or simply you can set
config.i18n.enforce_available_locales = false