在我的本地电脑上一切正常,但在heroku上我收到错误。
我的heroku控制台:
PC@HOME-PC /c/rails/konkurranceportalen (master)
$ heroku console
Ruby console for vinderhimlen.heroku.com
>> I18n.l Time.now
I18n::MissingTranslationData: translation missing: da.time.formats.default
/app/.bundle/gems/ruby/1.9.1/gems/i18n-0.5.0/lib/i18n/backend/fallbacks.
rb:53:in `translate'
/app/.bundle/gems/ruby/1.9.1/gems/i18n-0.5.0/lib/i18n.rb:155:in `transla
te'
/app/.bundle/gems/ruby/1.9.1/gems/i18n-0.5.0/lib/i18n/backend/base.rb:55
:in `localize'
/app/.bundle/gems/ruby/1.9.1/gems/i18n-0.5.0/lib/i18n.rb:235:in `localiz
e'
PC@HOME-PC /c/rails/konkurranceportalen (master)
$ heroku stack
aspen-mri-1.8.6
bamboo-ree-1.8.7
* bamboo-mri-1.9.2
PC@HOME-PC /c/rails/konkurranceportalen (master)
$