今天遇到一个很奇怪的问题,我的 redmine 在 development 模式下没有任何问题,但是以 production 模式的时候就报错了; 错误信息如下:
I18n::ArgumentError in Welcome#index
Showing app/views/welcome/index.html.erb where line #1 raised:
Object must be a Date, DateTime or Time object. :label_home given.
Extracted source (around line #1):
1: <h2><%= l(:label_home) %></h2>
2:
3: <div class="splitcontentleft">
4: <%= textilizable Setting.welcome_text %>
RAILS_ROOT: /home/sjy/workspace/tuan800/redmine
Application Trace | Framework Trace | Full Trace
/home/sjy/.rvm/gems/ruby-1.8.7-p371/gems/i18n-0.6.1/lib/i18n/backend/base.rb:49:in `localize'
/home/sjy/.rvm/gems/ruby-1.8.7-p371/gems/i18n-0.6.1/lib/i18n.rb:236:in `localize'
/home/sjy/.rvm/gems/ruby-1.8.7-p371/gems/actionpack-2.3.14/lib/action_view/helpers/translation_helper.rb:38:in `l'
/home/sjy/workspace/tuan800/redmine/app/views/welcome/index.html.erb:1:in `_run_erb_app47views47welcome47index46html46erb'
google 了很久,还是没有找到答案,希望大家帮忙看看!!