You have an application in Rails 4, there is a field in database with type BINARY 16 (it uses gem activeuuid).
You must bring the form to edit, in this case, before the withdrawal and preservation of the shape to convert to a readable form and back.
For example, there is a model HostInterface, where the mac address just in binary, added to the model method for field name
def mac_address
self[:mac_address].unpack('C*').join(':') if self[:mac_address]
end
The problem is that the conversion only works in the console, the rail and the derivation of the form appears 'unicode-hell' (binary the same).
A form is displayed as standard using form_for and fields_for (tried simple_form, but it generally falls with Encoding-error).
Where to dig to solve this issue?
Thank you.