title: Rails created_at on display if Today?
body: <p>Is it possible to display the created_at date, only if that date matches today's date?</p>
  
  <pre><code>&lt;%=h k.created_at %&gt;
  </code></pre>
  
  <p>Is this possible? Or should it be done in the controller rather than the view?</p>
  
  <p>Thanks,</p>
  
  <p>Danny</p>
  
  <p>I have the following in my environment.rb:</p>
  
  <pre><code>ActiveSupport::CoreExtensions::Date::Conversions::DATE_FORMATS.merge!(:default =&gt; '%d/%m/%Y')
  ActiveSupport::CoreExtensions::Time::Conversions::DATE_FORMATS.merge!(:default =&gt; '%d/%m/%Y')
  </code></pre>