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
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
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.'
>
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
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
5 matches
Mail list logo