<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: model code</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Wed, 20 Aug 2008 20:10:11 GMT</pubDate>
    <description>DZone Snippets: model code</description>
    <item>
      <title>Create a new instance of Magick::Image out of uploaded form data</title>
      <link>http://snippets.dzone.com/posts/show/1673</link>
      <description>Taken from Norman Timmler's example on the Ruby on Rails mailing list:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;def file=(new_file)&lt;br /&gt; new_file.rewind&lt;br /&gt; image = Magick::Image::from_blob(new_file.read).first&lt;br /&gt;end&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Thu, 09 Mar 2006 22:41:14 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/1673</guid>
      <author>heavysixer ()</author>
    </item>
  </channel>
</rss>
