# About form\_for and date

**URL:** <https://www.ruby-forum.com/t/about-form-for-and-date/148691>\
**Category:** Rails\
**Created:** [September 16, 2008, 9:10am UTC](https://www.ruby-forum.com/t/about-form-for-and-date/148691 "2008-09-16T09:10:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nn2000](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/e95f7d/32.png) [@nn2000](https://www.ruby-forum.com/u/nn2000)\
**Post date:** [September 16, 2008, 9:10am UTC](https://www.ruby-forum.com/t/about-form-for-and-date/148691/1 "2008-09-16T09:10:18Z")

</div>

\<% form\_for (@task) do |f| %\>  
â€¦  
\<%= select\_date (date.today) :task\_date %\>  
\<% end %\>

The above code won’t work, what’s the right syntax?

---

<div class="post-metadata">

**Author:** ![nn2000](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/e95f7d/32.png) [@nn2000](https://www.ruby-forum.com/u/nn2000)\
**Post date:** [September 16, 2008, 10:45am UTC](https://www.ruby-forum.com/t/about-form-for-and-date/148691/2 "2008-09-16T10:45:48Z")

</div>

## Please only post in one spot. I saw this on [railsforum.com](http://railsforum.com) too.

Ryan B.  
Freelancer  
Skype: radarlistener  
MSN & Gtalk: removed\_email\_address@domain.invalid
