ruby on rails - const_missing error when changing I18n backedn -
ruby on rails - const_missing error when changing I18n backedn -
i'm trying upgrade i18n backend of application utilize database instead of yml files internationalization. i'm next steps found i18n-active_record gem found here: https://github.com/svenfuchs/i18n-active_record.
unfortunately, aws-s3 gem seems conflicting somehow can't start server or console 1 time create locale.rb initializer. here summary of steps i'm following:
gem "i18n-active_record", "~> 0.0.2" create new file config/initializers/locale.rb within locale.rb i18n.backend = i18n::backend::database.new restart localhost server load initializer
error message
/users/user_name/.rvm/gems/ree-1.8.7-2010.02@app/gems/aws-s3-0.6.2/lib/aws/s3/extensions.rb:206:in `const_missing': uninitialized constant i18n::backend::database (nameerror) ...(several more lines)
any help or insight appreciated!
although readme in github says so, don't think database constant defined gem. try
i18n.backend = i18n::backend::activerecord.new
ruby-on-rails ruby-on-rails-3 internationalization amazon-s3
Comments
Post a Comment