search for: yjhwhy

Displaying 1 result from an estimated 1 matches for "yjhwhy".

Did you mean: hwhy
2012 Jun 01
3
Serialized attribute saved as HashWithIndifferentAccess in database
My Booking model has: serialize :custom_data, Hash From the console it works as expected saving values to the custom_data attribute. But when having a form with parameters like this: booking[custom_data][hello] and creating a new object in the controller like this: Booking.new( params[:booking] ), values are saved in the database with added metadata like this: ---