<?xml version="1.0" encoding="UTF-8"?>
<article>
  <body>[&#12371;&#12385;&#12425;](http://agilewebdevelopment.com/plugins/exception_notifier)
&#12391;&#12289;ExceptionNotifier&#12503;&#12521;&#12464;&#12452;&#12531;&#12398;&#12486;&#12531;&#12503;&#12524;&#12540;&#12488;&#12395;&#38306;&#12377;&#12427;&#12496;&#12464;&#12398;&#22577;&#21578;&#12364;&#20986;&#12390;&#12356;&#12414;&#12375;&#12383;&#12290;

**Plugins - Exception Notifier**

&gt;Brett Neumeier 12 Oct 2007
&gt;
&gt;    In ruby 1.8.6p111, rendering the _environment.rhtml plugin fails with &quot;TemplateError: flag after width&quot;. This is fixed if you change the string &quot;%-s&quot; to &quot;%-s&quot; on line three of the template.
&gt;&gt;Chris  18 Oct 2007
&gt;&gt;
&gt;&gt;    This is the correct string: &quot;%-*s:&quot;

&#20855;&#20307;&#30340;&#12395;&#12399;&#12289;`views/exception_notifier/_environment.rhtml` &#12398;3&#34892;&#30446;&#12434;&#27425;&#12398;&#12424;&#12358;&#12395;&#20462;&#27491;&#12377;&#12428;&#12400;OK&#12398;&#12424;&#12358;&#12391;&#12377;&#12290;

**views/exception_notifier/_environment.rhtml**

    &lt;% max = @request.env.keys.max { |a,b| a.length &lt;=&gt; b.length } -%&gt;
    &lt;% @request.env.keys.sort.each do |key| -%&gt;
    * &lt;%= &quot;%-*s: %s&quot; % [max.length, key, filter_sensitive_post_data_from_env(key, @request.env[key].to_s.strip)] %&gt;
    &lt;% end -%&gt;

&#25163;&#20803;&#12398;&#29872;&#22659;&#65288;ruby-1.8.6 p36/Rails-1.99.0&#65289;&#12391;&#12399;&#12289;&#12371;&#12428;&#12391;&#21839;&#38988;&#12394;&#12367;&#21205;&#20316;&#12377;&#12427;&#12424;&#12358;&#12395;&#12394;&#12426;&#12414;&#12375;&#12383;&#12290;</body>
  <cached-tag-list>rails bug plugin report fix</cached-tag-list>
  <comments-count type="integer">0</comments-count>
  <created-at type="datetime">2007-11-15T05:07:28+00:00</created-at>
  <daily-archive-id type="integer">218</daily-archive-id>
  <filter-type>blue_stole</filter-type>
  <id type="integer">195</id>
  <monthly-archive-id type="integer">6</monthly-archive-id>
  <pdf-digest nil="true"></pdf-digest>
  <permalink nil="true"></permalink>
  <published-at type="datetime">2007-11-15T05:11:00+00:00</published-at>
  <secret>6ba42af3-c629-49e9-acae-23271b835762</secret>
  <title>ExceptionNotifier&#12503;&#12521;&#12464;&#12452;&#12531;&#12398;&#12496;&#12464;&#24773;&#22577;</title>
  <updated-at type="datetime">2008-10-22T20:08:30+00:00</updated-at>
  <user-id type="integer">1</user-id>
</article>
