ExceptionNotifierプラグインのバグ情報
こちら
で、ExceptionN
Plugins - Exception Notifier
Brett Neumeier 12 Oct 2007
In ruby 1.8.6p111, rendering the _environme
nt.rhtml plugin fails with "TemplateEr ror: flag after width". This is fixed if you change the string "%-s" to "%-s" on line three of the template. Chris 18 Oct 2007
This is the correct string: "%-*s:"
具体的には、views/exce
の3行目を次のように修正すればOKのようです。
views/exce
<% max = @request.en v.keys.max { |a,b| a.length <=> b.length } -%>
<% @request.en v.keys.sor t.each do |key| -%>
* <%= "%-*s: %s" % [max.length , key, filter_sen sitive_pos t_data_fro m_env(key, @request.en v[key].to_s.stri p)] %>
<% end -%>
手元の環境(ruby-1.8.6