This seems too simple - I MUST be overlooking something...
I can create an rmagick image in my controller and display it fine.
When I create a second image and try to refresh via observe_form, it
shows garbled text...
BTW: RMagick is wonderful.
I am having a difficulty in what seems very elementary in Rails.
1. Create a form that user enters some params (color)
2. Observe the form and create an image (to_blob)
3. Display the image on the same form (near real time). As the user
enter params it builds their image.
What it displays in the div (dynamic image) is...
�PNG IHDR $ �6 pHYsHHF�k>�IDATx���1 �@���C �) ˡKe� �7?�33 R�� � �d`$
I @�� �d`$ I @�� �d`$ I @�� �d`$ I @�� �d`$ I @�� �d`$ I @�� �d`$ I
@�� �d`$ I @�� �d`$��T 4 �W�IEND�B`�