title: rails 3.0.3 check if boolean value is true
body: <p>I want to check if a value is true or false.</p>
  
  <pre><code>&lt;% if item.active? %&gt;
      &lt;%= image_tag('on.png', :alt =&gt; "Active", :border =&gt; 0) %&gt;
  &lt;% else %&gt; 
      &lt;%= image_tag('off.png', :alt =&gt; "Inactive", :border =&gt; 0) %&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>That doesn't work, but this works?</p>
  
  <pre><code>&lt;% if item.active == true %&gt;
      &lt;%= image_tag('on.png', :alt =&gt; "Active", :border =&gt; 0) %&gt;
  &lt;% else %&gt; 
      &lt;%= image_tag('off.png', :alt =&gt; "Inactive", :border =&gt; 0) %&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>Shouldn't the first method work or am I missing something?</p>