On 23 May 2011 17:18, QAS WM <[email protected]> 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 -- 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.

