title: Ruby on Rails 3: How to create a 12 hour (with AM/PM) time select element?
body: <p>From what I can tell by looking in the Rails source code, it looks like all the methods are there. I just can't figure out how to call <code>time_select</code> with the right options to enable 12 hour and add a AM/PM select element. What options do I need pass in order to create this?</p>
  
  <p>Here are a few things that I've tried:</p>
  
  <pre><code>&lt;%= form_for(@post) do |f| %&gt;
    &lt;div class="field"&gt;
      &lt;%= f.label :created_at %&gt;&lt;br /&gt;
      &lt;%= f.time_select :created_at, :ampm =&gt; true              #didnt do anything %&gt;
      &lt;%= time_select('post', 'created_at', { :ampm =&gt; true })  #also didnt do anything %&gt;
    &lt;/div&gt;
  &lt;% end %&gt;
  </code></pre>