<?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>Push cx &#187; semicolon</title>
	<atom:link href="http://push.cx/tag/semicolon/feed" rel="self" type="application/rss+xml" />
	<link>http://push.cx</link>
	<description>A traveling geek&#039;s blog on development, games, and the web</description>
	<lastBuildDate>Thu, 19 Apr 2012 20:39:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Rails: Semicolons Out, Slashes In</title>
		<link>http://push.cx/2007/rails-semicolons-out-slashes-in</link>
		<comments>http://push.cx/2007/rails-semicolons-out-slashes-in#comments</comments>
		<pubDate>Sun, 01 Apr 2007 21:50:23 +0000</pubDate>
		<dc:creator>Peter Harkins</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[map]]></category>
		<category><![CDATA[mapping]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[resources]]></category>
		<category><![CDATA[routes]]></category>
		<category><![CDATA[routing]]></category>
		<category><![CDATA[semicolon]]></category>
		<category><![CDATA[slash]]></category>
		<category><![CDATA[slashes]]></category>
		<category><![CDATA[URLs]]></category>

		<guid isPermaLink="false">http://push.cx/2007/rails-semicolons-out-slashes-in</guid>
		<description><![CDATA[As of r6485, Edge Rails resource routes use / as the URL separator for actions instead of ;. This will be in Rails 2.0 (and I like / more), so I wanted to get prepared for the change by updating my URLs now. I didn&#8217;t want to move to Edge Rails (too exciting for me), [...]]]></description>
			<content:encoded><![CDATA[<p>
As of <a href="http://push.cx/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2Rldi5ydWJ5b25yYWlscy5vcmcvY2hhbmdlc2V0LzY0ODU=">r6485</a>, Edge Rails resource routes use <b>/</b> as the URL separator for actions instead of <b>;</b>. This will be <a href="http://push.cx/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3ByYWdkYXZlLnByYWdwcm9nLmNvbS9wcmFnZGF2ZS8yMDA3LzAzL2NoYW5nZV90b19yZXN0Xy5odG1s">in Rails 2.0</a> (and I like / more), so I wanted to get prepared for the change by updating my URLs now. I didn&#8217;t want to move to Edge Rails (too exciting for me), so I grabbed the change, dropped it into a source file, and loaded it into my app (thank you, open classes).
</p>

<p>
If you want to get ready now, grab 
<a href="http://push.cx/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=L3dwLWNvbnRlbnQvdXBsb2Fkcy8yMDA3LzA0L3NsYXNoX3VybHMucmI="><kbd>slash_urls.rb</kbd></a> and drop it in your <kbd>lib</kbd> directory. At the top of your <kbd>config/routes.rb</kbd>, add the line:
</p>

<pre>&nbsp;
<span style="color: #000066;">require</span> <span style="color: #ff0000;">'slash_urls'</span></pre>

<p>
And now all my URLs on <a href="http://push.cx/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL25lYXJieWdhbWVycy5jb20=">NearbyGamers</a> use slashes instead of semicolons. I only had one or two actions on my ActiveResource routes besides the built-in CRUD, so I&#8217;m not worried about doing a 301 redirects.
</p> <img src="http://push.cx/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=231" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://push.cx/2007/rails-semicolons-out-slashes-in/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

