Re: Re: Help with serialization

Colin Law
Mon, 23 May 2011 16:25:12 -0000

On 23 May 2011 17:18, QAS WM
<lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>
wrote:
> Frederick Cheung wrote in post #1000379:
>>
>> So what does get saved in the database. What does the params hash look
>> like at the point where this code runs?
>>
>> Fred
>
> Values for each of the items in the hash are nil. If I replace the
> params[:ac_rear] for example
>
> :ac_rear => params[:ac_rear]
>
> with true or false
>
> :ac_rear => true,
>
> that does get saved and shows as such.

Then it is nothing to do with the serialization, it is params that is
not setup at the point you assign it to @vehicle.options.  Look in
development.log to see what params are being posted.  If you can''t get
to the bottom of it then probably best to start a new thread as the
subject line is now inappropriate.

Colin