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.new(params[:post])
    if @post.save
      flash[:notice] = 'Post was successfully created.'
      redirect_to :action => 'list'
    else
      render :action => 'new'
    end
  end

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 =>
Date.today.strftime('%Y').to_i  %>


Am i doing something wrong?

thanks
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to