How can I change serialized data using the best_in_place gem?
I have a model with serialized data and I want to edit this data using the best_in_place gem. This isn't possible by default when using the best_in_place gem. How can this be done? It can be done by extending method_missing and respond_to_missing? to forward the requests to the serialized data. Lets say you have your serialized Hash in data . In the class that's containing the serialized data you can for example use this code: def method_missing(method_name, *arguments, &block) # forewards the arguments to the correct methods if method_name.to_s =~ /data_(.+)\=/ key = method_name.to_s.match(