Solved the problem. I was using attr_accessible and forgot to include the date_select field in it. Stupid of me.
James Byrne wrote: > 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.new(params[:post]) >> if @post.save >> flash[:notice] = 'Post was successfully created.' >> redirect_to :action => 'list' >> else >> render :action => 'new' >> end >> end >> > > What does putting 'print params[:post].to_yaml' just before the > flash[:notice] show on the console? -- 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 -~----------~----~----~----~------~----~------~--~---

