<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: date_select code</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Thu, 21 Aug 2008 02:27:28 GMT</pubDate>
    <description>DZone Snippets: date_select code</description>
    <item>
      <title>Use rails date_select without activerecord model</title>
      <link>http://snippets.dzone.com/posts/show/4630</link>
      <description>// In your view:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;%= date_select('range', 'start_date', :order =&gt; [:month, :day, :year])%&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;// In your controller:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;@start_date = Date.civil(params[:range][:"start_date(1i)"].to_i,params[:range][:"start_date(2i)"].to_i,params[:range][:"start_date(3i)"].to_i)&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Credit: http://www.jonsthoughtsoneverything.com/2006/05/21/how-to-access-date_select-without-an-active-record-model/</description>
      <pubDate>Wed, 10 Oct 2007 12:42:58 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/4630</guid>
      <author>davenolan (davenolan)</author>
    </item>
  </channel>
</rss>
