Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NameError: uninitialized constant I18n::Config::Backend on Ruby 2.3.0 with Heroku #337

Closed
cmalpeli opened this issue Apr 18, 2016 · 3 comments

Comments

@cmalpeli
Copy link

cmalpeli commented Apr 18, 2016

I just upgraded Ruby 2.2.2 to 2.3.0. Whenever I try to run a rake task I get the following:

NameError: uninitialized constant I18n::Config::Backend
/Users/cman/.rvm/gems/ruby-2.3.0/gems/i18n-0.7.0/lib/i18n/config.rb:19:in `backend'
/Users/cman/.rvm/gems/ruby-2.3.0/gems/i18n-0.7.0/lib/i18n.rb:147:in `translate'
/Users/cman/.rvm/gems/ruby-2.3.0/gems/actionview-4.2.5.1/lib/action_view/helpers/translation_helper.rb:69:in `translate'
/Users/cman/.rvm/gems/ruby-2.3.0/gems/i18n-0.7.0/lib/i18n/config.rb:19:in `backend'
/Users/cman/.rvm/gems/ruby-2.3.0/gems/i18n-0.7.0/lib/i18n.rb:147:in `translate'
/Users/cman/.rvm/gems/ruby-2.3.0/gems/actionview-4.2.5.1/lib/action_view/helpers/translation_helper.rb:69:in `translate'
/Users/cman/.rvm/gems/ruby-2.3.0/gems/railties-4.2.5.1/lib/rails/engine.rb:658:in `block in run_tasks_blocks'
/Users/cman/.rvm/gems/ruby-2.3.0/gems/railties-4.2.5.1/lib/rails/engine.rb:658:in `each'
/Users/cman/.rvm/gems/ruby-2.3.0/gems/railties-4.2.5.1/lib/rails/engine.rb:658:in `run_tasks_blocks'
/Users/cman/.rvm/gems/ruby-2.3.0/gems/railties-4.2.5.1/lib/rails/application.rb:452:in `run_tasks_blocks'
/Users/cman/.rvm/gems/ruby-2.3.0/gems/railties-4.2.5.1/lib/rails/engine.rb:453:in `load_tasks'
/Users/cman/.rvm/gems/ruby-2.3.0/gems/railties-4.2.5.1/lib/rails/railtie.rb:194:in `public_send'
/Users/cman/.rvm/gems/ruby-2.3.0/gems/railties-4.2.5.1/lib/rails/railtie.rb:194:in `method_missing'
/Users/cman/Dropbox/rails_projects/job_board/Rakefile:9:in `<top (required)>'
/Users/cman/.rvm/gems/ruby-2.3.0/gems/rake-10.5.0/lib/rake/rake_module.rb:28:in `load'
/Users/cman/.rvm/gems/ruby-2.3.0/gems/rake-10.5.0/lib/rake/rake_module.rb:28:in `load_rakefile'
/Users/cman/.rvm/gems/ruby-2.3.0/gems/rake-10.5.0/lib/rake/application.rb:689:in `raw_load_rakefile'
/Users/cman/.rvm/gems/ruby-2.3.0/gems/rake-10.5.0/lib/rake/application.rb:94:in `block in load_rakefile'
/Users/cman/.rvm/gems/ruby-2.3.0/gems/rake-10.5.0/lib/rake/application.rb:176:in `standard_exception_handling'
/Users/cman/.rvm/gems/ruby-2.3.0/gems/rake-10.5.0/lib/rake/application.rb:93:in `load_rakefile'
/Users/cman/.rvm/gems/ruby-2.3.0/gems/rake-10.5.0/lib/rake/application.rb:77:in `block in run'
/Users/cman/.rvm/gems/ruby-2.3.0/gems/rake-10.5.0/lib/rake/application.rb:176:in `standard_exception_handling'
/Users/cman/.rvm/gems/ruby-2.3.0/gems/rake-10.5.0/lib/rake/application.rb:75:in `run'
/Users/cman/.rvm/gems/ruby-2.3.0/gems/rake-10.5.0/bin/rake:33:in `<top (required)>'
/Users/cman/.rvm/gems/ruby-2.3.0/bin/rake:23:in `load'
/Users/cman/.rvm/gems/ruby-2.3.0/bin/rake:23:in `<main>'
/Users/cman/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `eval'
/Users/cman/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `<main>'
@cmalpeli
Copy link
Author

Just updated this to reflect that this is not related to Heroku. The error occurs every time I attempt to run a rake task.

@emilianodellacasa
Copy link

Have you included ActionView::Helpers::TranslationHelper in a rake atsk to use the t helper?

Here on stack overflow there is someone experiencing a similar issue

@cmalpeli
Copy link
Author

thanks @emilianodellacasa that was actually my SO pos ;) I'm going to close this out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants