date_Select help

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

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

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
method.

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.