[Rails] Re: problem inserting date_select values in the database

2009-04-26 Thread Sam Ginko
Solved the problem. I was using attr_accessible and forgot to include the date_select field in it. Stupid of me. thanks Frederick Cheung wrote: > On Apr 26, 8:20�pm, Sam Ginko > wrote: >> I'm trying to insert the selected values of the date_select object in >> the database but I'm getting noth

[Rails] Re: problem inserting date_select values in the database

2009-04-26 Thread Sam Ginko
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 th

[Rails] Re: problem inserting date_select values in the database

2009-04-26 Thread James Byrne
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.' >

[Rails] Re: problem inserting date_select values in the database

2009-04-26 Thread Sam Ginko
It doe not insert anything into the database. I guess it's what you describe as "save but the birthdate attribute is not set" Frederick Cheung wrote: > On Apr 26, 8:20�pm, Sam Ginko > wrote: >> I'm trying to insert the selected values of the date_select object in >> the database but I'm gettin

[Rails] Re: problem inserting date_select values in the database

2009-04-26 Thread Frederick Cheung
On Apr 26, 8:20 pm, Sam Ginko wrote: > I'm trying to insert the selected values of the date_select object in > the database but I'm getting nothing > [snip] > > Am i doing something wrong? Not at first glance. Define nothing (date parameter is not in the request parameters at all, object does