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

Already on GitHub? Sign in to your account

brI18n.rb, uninitialized constant Object::RAILS_ROOT (NameError) #32

Closed
juliobetta opened this Issue Mar 1, 2012 · 2 comments

Comments

Projects
None yet
3 participants

Uso ruby 1.9.2, rails 3.1.1. No arquivo brI18n.rb, linha 12, se mudar

I18n.load_path = Dir.glob("#{RAILS_ROOT}/config/locales/*") + Dir.glob("#{BrI18n::I18N_FILES}/*")

para

I18n.load_path = Dir.glob("#{Rails.root}/config/locales/*") + Dir.glob("#{BrI18n::I18N_FILES}/*")

resolve o problema!!! =)
abraços e parabens pelo ótimo trabalho de voces.

Owner

tapajos commented Jun 2, 2012

Manda um pull request!

Collaborator

tinogomes commented Sep 20, 2012

feito

@tinogomes tinogomes closed this Sep 20, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment