# date\_Select help

**URL:** <https://www.ruby-forum.com/t/date-select-help/116593>\
**Category:** Rails\
**Created:** [October 7, 2007, 7:43pm UTC](https://www.ruby-forum.com/t/date-select-help/116593 "2007-10-07T19:43:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wmerydith](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/ccd318/32.png) [@wmerydith](https://www.ruby-forum.com/u/wmerydith)\
**Post date:** [October 7, 2007, 7:43pm UTC](https://www.ruby-forum.com/t/date-select-help/116593/1 "2007-10-07T19:43:44Z")

</div>

Hi,

I am using date\_select for when a post is being submitted. This is the  
tag i use in my view,

\<%= date\_select(“post”, “date”, :order =\> [:month, :day])%\>

However this outputs

this is probably the way its meant to be, but i cant get it to submit it  
to the db colum, date.  
Is there a way of getting it to output

?

Thanks Will

---

<div class="post-metadata">

**Author:** ![wmerydith](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/ccd318/32.png) [@wmerydith](https://www.ruby-forum.com/u/wmerydith)\
**Post date:** [October 8, 2007, 5:03pm UTC](https://www.ruby-forum.com/t/date-select-help/116593/2 "2007-10-08T17:03:33Z")

</div>

i hope some answers your problem too…i’ve got the same issue…and i  
keep getting a multiparamete assignment error…dave

---

<div class="post-metadata">

**Author:** ![wmerydith](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/ccd318/32.png) [@wmerydith](https://www.ruby-forum.com/u/wmerydith)\
**Post date:** [October 8, 2007, 5:08pm UTC](https://www.ruby-forum.com/t/date-select-help/116593/3 "2007-10-08T17:08:14Z")

</div>

The :prefix parameter sets the name. From the documentation:

:prefix - overwrites the default prefix of “date” used for the select  
names. So specifying “birthday” would give birthday[month] instead of  
date[month] if passed to the select\_month  
[http://api.rubyonrails.org/classes/ActionView/Helpers/DateHelper.html#M000592](http://api.rubyonrails.org/classes/ActionView/Helpers/DateHelper.html#M000592)  
method.

[http://api.rubyonrails.org/](http://api.rubyonrails.org/)

-Bill

dave wrote:

> > \<%= date\_select(“post”, “date”, :order =\> [:month, :day])%\>
> > 
> > ## Thanks Will
> > 
> > Posted viahttp://www.ruby-forum.com/.
> 
> >

–  
Sincerely,

William P.
