I’m trying to insert the selected values of the date_select object in
the database but I’m getting nothing
controller looks like this.
@post = Post.new(params[:post])
flash[:notice] = ‘Post was successfully created.’
redirect_to :action => ‘list’
render :action => ‘new’
this is the date_select field in my form
<%= date_select :post, :birthdate, :order => [:month,
:day, :year], :start_year => (Date.today -
99.years).strftime(’%Y’).to_i, :end_year =>
Am i doing something wrong?