<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Brian Wigginton &#187; Rails</title>
	<atom:link href="http://www.bwigg.com/category/rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bwigg.com</link>
	<description>libB - Notes &#38; Tutorials on Delicious Bytes of Technology</description>
	<lastBuildDate>Tue, 16 Feb 2010 01:28:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Paperclip &#8211; Customizing Paths and URLs</title>
		<link>http://www.bwigg.com/2009/10/paperclip-customizing-paths-and-urls/</link>
		<comments>http://www.bwigg.com/2009/10/paperclip-customizing-paths-and-urls/#comments</comments>
		<pubDate>Mon, 19 Oct 2009 23:08:35 +0000</pubDate>
		<dc:creator>bawigga</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://www.bwigg.com/?p=64</guid>
		<description><![CDATA[To customize the paths and urls of paperclip objects in your rails app you need to modify both the :path and :url options for  has_attached_file in your models. Here's an example... class SomeModel &#60; ActiveRecord::Base &#160; has_attached_file :image_one, :path =&#62; &#34;public/system/:class/:id/:filename&#34;, :url =&#62; &#34;/system/:class/:id/:basename.:extension&#34; &#160; has_attached_file :image_two, :path =&#62; &#34;public/system/:class/:id/:filename&#34;, :url =&#62; &#34;/system/:class/:id/:basename.:extension&#34; end By [...]]]></description>
		<wfw:commentRss>http://www.bwigg.com/2009/10/paperclip-customizing-paths-and-urls/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
