<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Dynamic Named Routes for Semi-Static Pages in Rails</title>
	<atom:link href="http://dj-bri-t.net/2010/04/dynamic-named-routes-for-semi-static-pages-in-rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://dj-bri-t.net/2010/04/dynamic-named-routes-for-semi-static-pages-in-rails/</link>
	<description>The blog and portfolio of Brian Turchyn</description>
	<lastBuildDate>Thu, 10 May 2012 16:07:10 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: Rails 3 Generators: Adding Migration Templates &#124; DJ Bri T.net</title>
		<link>http://dj-bri-t.net/2010/04/dynamic-named-routes-for-semi-static-pages-in-rails/comment-page-1/#comment-1440</link>
		<dc:creator>Rails 3 Generators: Adding Migration Templates &#124; DJ Bri T.net</dc:creator>
		<pubDate>Thu, 10 May 2012 16:07:10 +0000</pubDate>
		<guid isPermaLink="false">http://dj-bri-t.net/?p=351#comment-1440</guid>
		<description>[...] first gem I&#039;m working on stems from this post from a couple years ago where I demonstrated how to do dynamically-named routes using semi-static [...]</description>
		<content:encoded><![CDATA[<p>[...] first gem I&#039;m working on stems from this post from a couple years ago where I demonstrated how to do dynamically-named routes using semi-static [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian</title>
		<link>http://dj-bri-t.net/2010/04/dynamic-named-routes-for-semi-static-pages-in-rails/comment-page-1/#comment-710</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Wed, 09 Jun 2010 03:37:01 +0000</pubDate>
		<guid isPermaLink="false">http://dj-bri-t.net/?p=351#comment-710</guid>
		<description>Stan,

Although I haven&#039;t looked into this further, try creating an &quot;exists?&quot; method using &lt;code&gt;ActionController::Routing::Routes.recognize_path&lt;/code&gt; with a &lt;code&gt;rescue&lt;/code&gt; block to catch any failed named routes.</description>
		<content:encoded><![CDATA[<p>Stan,</p>
<p>Although I haven&#8217;t looked into this further, try creating an &#8220;exists?&#8221; method using <code>ActionController::Routing::Routes.recognize_path</code> with a <code>rescue</code> block to catch any failed named routes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian</title>
		<link>http://dj-bri-t.net/2010/04/dynamic-named-routes-for-semi-static-pages-in-rails/comment-page-1/#comment-709</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Wed, 09 Jun 2010 03:32:03 +0000</pubDate>
		<guid isPermaLink="false">http://dj-bri-t.net/?p=351#comment-709</guid>
		<description>Thanks for the tip, Robbie. I knew that the routes needed to be updated, but didn&#039;t look into how to do it.</description>
		<content:encoded><![CDATA[<p>Thanks for the tip, Robbie. I knew that the routes needed to be updated, but didn&#8217;t look into how to do it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robbie</title>
		<link>http://dj-bri-t.net/2010/04/dynamic-named-routes-for-semi-static-pages-in-rails/comment-page-1/#comment-708</link>
		<dc:creator>Robbie</dc:creator>
		<pubDate>Tue, 08 Jun 2010 03:44:15 +0000</pubDate>
		<guid isPermaLink="false">http://dj-bri-t.net/?p=351#comment-708</guid>
		<description>nice post, worked a treat. One thing to remember to do is after you save or update your page, make sure you call

ActionController::Routing::Routes.reload!

to regenerate your new/updated routes.</description>
		<content:encoded><![CDATA[<p>nice post, worked a treat. One thing to remember to do is after you save or update your page, make sure you call</p>
<p>ActionController::Routing::Routes.reload!</p>
<p>to regenerate your new/updated routes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stan</title>
		<link>http://dj-bri-t.net/2010/04/dynamic-named-routes-for-semi-static-pages-in-rails/comment-page-1/#comment-704</link>
		<dc:creator>Stan</dc:creator>
		<pubDate>Tue, 01 Jun 2010 18:39:13 +0000</pubDate>
		<guid isPermaLink="false">http://dj-bri-t.net/?p=351#comment-704</guid>
		<description>Hi Brian, i test you example and works, but how i can validate if the user put a /contact-me if i dont have this permalink declare? 

Are you have additional recommendations to complete this example?

Thank you!</description>
		<content:encoded><![CDATA[<p>Hi Brian, i test you example and works, but how i can validate if the user put a /contact-me if i dont have this permalink declare? </p>
<p>Are you have additional recommendations to complete this example?</p>
<p>Thank you!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

