title: Rails 3 date_select for year only
body: <p>I have a form in my Rails 3 app where I want to create a <code>select</code> tag for just the year on a method <code>:grad_year</code>. I have everything working - and storing - properly using <code>date_select</code> and adding <code>:discard_month</code> and <code>:discard_day</code>. However when I render <code>@profile.grad_year</code> I get the month and day values. So I'm wondering how to store and render  <strong>only</strong> the year for <code>@profile.grad_year</code>?</p>
  
  <p>Here is the form:</p>
  
  <pre><code>&lt;%= f.date_select :grad_year, {:start_year =&gt; Time.now.year, :end_year =&gt; Time.now.year - 95, :discard_day =&gt; true, :discard_month =&gt; true}, :selected =&gt; @profile.grad_year %&gt;
  </code></pre>
  
  <p>In my migration:</p>
  
  <pre><code>t.date :grad_year
  </code></pre>