Re: problem date_select with active_form

Colin Law
Thu, 17 Sep 2009 15:30:39 -0000

2009/9/17 Aldo Italo
<rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>:
>
> Amar Daxini wrote:
>> Aldo Italo wrote:
>>> any idea?
>>
>> Check your params[:contact] how it passes
>> check params period how it passed
>> or you can do this thing make setter method combine this hash 3 value
>
>
> my errors:
> /...../vendor/plugins/active_form/lib/active_form.rb:17:in
> `instance_variable_set''
> /...../vendor/plugins/active_form/lib/active_form.rb:17:in `[]=''
> /...../vendor/plugins/active_form/lib/active_form.rb:6:in
`initialize''
> /...../vendor/plugins/active_form/lib/active_form.rb:5:in `each''
> /...../vendor/plugins/active_form/lib/active_form.rb:5:in
`initialize''
> /...../app/controllers/front/sections_controller.rb:60:in `new''
> /...../app/controllers/front/sections_controller.rb:60:in
`form_contact''
>
>
> parameters:
>
> {"contact"=>{"name"=>"",
>  "period(3i)"=>"17",
>  "info"=>"",
>  "phone"=>"",
>  "newsletter"=>"0",
>  "privacy"=>"0",
>  "surname"=>"",
>  "period(1i)"=>"2009",
>  "email"=>"",
>  "period(2i)"=>"9"},
>
 "authenticity_token"=>"lWLs2p54kCr4Ymwj9DVBIvtmkdGtwZ/R8uvXZw8Sx14="}
>

What type is the column period in the database?

Colin