problem inserting date_select values in the database

Sam Ginko wrote:

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.
def create
    @post =[:post])
      flash[:notice] = 'Post was successfully created.'
      redirect_to :action => 'list'
      render :action => 'new'

What does putting 'print params[:post].to_yaml' just before the
flash[:notice] show on the console?

Solved the problem. I was using attr_accessible and forgot to include
the date_select field in it. Stupid of me.

James Byrne wrote: