Monthly Archives: June 2009

Paperclip Resized Image Details In to_xml

I love paperclip. In fact, I love paperclip enough to name my next child paperclip. The issue at hand is calling to_xml on an object that is using paperclip. What you end up with is something like this:
1234567891011121314<studio>
  <created-at type="datetime">2009-06-18T17:02:49Z</created-at>
  <description>A Studio Description Here</description>
  <id type="integer">1</id>
  <photo-content-type>image/jpeg</photo-content-type>
  <photo-file-name>jaws.jpg</photo-file-name>
  <photo-file-size type="integer">833900</photo-file-size>
  <photo-updated-at type="datetime">2009-06-18T17:02:48Z</photo-updated-at>
  <state>active</state>
  <title>Some Title [...]