<?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>Kommentarer til Gehling.dk</title>
	<atom:link href="http://gehling.dk/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://gehling.dk</link>
	<description>Living a world of code</description>
	<lastBuildDate>Sun, 04 Mar 2012 08:02:50 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>Kommentar til Fuldkornsbrød med surdej af Ib Andersen</title>
		<link>http://gehling.dk/2010/10/fuldkornsbr%c3%b8d-med-surdej/comment-page-1/#comment-68</link>
		<dc:creator>Ib Andersen</dc:creator>
		<pubDate>Sun, 04 Mar 2012 08:02:50 +0000</pubDate>
		<guid isPermaLink="false">http://gehling.dk/?p=211#comment-68</guid>
		<description>Jeg ville nok bruge 12,5 dl most og 7,5 del øl til surdejen - ellers bliver der ca 20 liter ret tynd surdej!</description>
		<content:encoded><![CDATA[<p>Jeg ville nok bruge 12,5 dl most og 7,5 del øl til surdejen &#8211; ellers bliver der ca 20 liter ret tynd surdej!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Kommentar til How to make Rails routing case-insensitive af Carsten</title>
		<link>http://gehling.dk/2010/02/how-to-make-rails-routing-case-insensitive/comment-page-1/#comment-66</link>
		<dc:creator>Carsten</dc:creator>
		<pubDate>Thu, 10 Mar 2011 22:52:58 +0000</pubDate>
		<guid isPermaLink="false">http://gehling.dk/?p=150#comment-66</guid>
		<description>Hi Brian,

Thank you for noticing the missing &quot;require&quot; part of my examples. Actually I don&#039;t use an explicit require statement for this. I&#039;ve placed all my middleware files in a dedicated folder, and then added this folder to Rails&#039; autoload_path. I&#039;ve updated the article with this solution, but also explained how to do the simple &quot;require&quot; stuff.

I am glad that this has helped you. I actually chose middleware to solving the casing issue for exactly the same reason, that you mention: I did not want my routing code or any other part of the rails application to have special hacks, for case-difference to work.

- Carste</description>
		<content:encoded><![CDATA[<p>Hi Brian,</p>
<p>Thank you for noticing the missing &#8220;require&#8221; part of my examples. Actually I don&#8217;t use an explicit require statement for this. I&#8217;ve placed all my middleware files in a dedicated folder, and then added this folder to Rails&#8217; autoload_path. I&#8217;ve updated the article with this solution, but also explained how to do the simple &#8220;require&#8221; stuff.</p>
<p>I am glad that this has helped you. I actually chose middleware to solving the casing issue for exactly the same reason, that you mention: I did not want my routing code or any other part of the rails application to have special hacks, for case-difference to work.</p>
<p>- Carste</p>
]]></content:encoded>
	</item>
	<item>
		<title>Kommentar til How to make Rails routing case-insensitive af Brian Marquis</title>
		<link>http://gehling.dk/2010/02/how-to-make-rails-routing-case-insensitive/comment-page-1/#comment-65</link>
		<dc:creator>Brian Marquis</dc:creator>
		<pubDate>Thu, 10 Mar 2011 20:10:30 +0000</pubDate>
		<guid isPermaLink="false">http://gehling.dk/?p=150#comment-65</guid>
		<description>I&#039;d like to make two comments on this:

First, thanks for the middleware. I&#039;ve inherited a Rails app and haven&#039;t worked with the routing mechanism much, having a personal preference to stick to rails default controller/action/id mechanism. This new app I&#039;m working on makes extensive use of routes, so I was looking for a quick solution to the case insensitive issue.

Second, I noticed that your Initializer modifications don&#039;t require &#039;downcase_route_middleware&#039;. This might seem a slight oversight, but for those of us yet unfamiliar with Rack, it was troublesome to find the problem.

Thanks!</description>
		<content:encoded><![CDATA[<p>I&#8217;d like to make two comments on this:</p>
<p>First, thanks for the middleware. I&#8217;ve inherited a Rails app and haven&#8217;t worked with the routing mechanism much, having a personal preference to stick to rails default controller/action/id mechanism. This new app I&#8217;m working on makes extensive use of routes, so I was looking for a quick solution to the case insensitive issue.</p>
<p>Second, I noticed that your Initializer modifications don&#8217;t require &#8216;downcase_route_middleware&#8217;. This might seem a slight oversight, but for those of us yet unfamiliar with Rack, it was troublesome to find the problem.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Kommentar til How to make Rails routing case-insensitive af Carsten</title>
		<link>http://gehling.dk/2010/02/how-to-make-rails-routing-case-insensitive/comment-page-1/#comment-64</link>
		<dc:creator>Carsten</dc:creator>
		<pubDate>Mon, 08 Nov 2010 06:12:56 +0000</pubDate>
		<guid isPermaLink="false">http://gehling.dk/?p=150#comment-64</guid>
		<description>You are welcome - and thanks again for pointing out the issue.

- Carsten</description>
		<content:encoded><![CDATA[<p>You are welcome &#8211; and thanks again for pointing out the issue.</p>
<p>- Carsten</p>
]]></content:encoded>
	</item>
	<item>
		<title>Kommentar til How to make Rails routing case-insensitive af kate</title>
		<link>http://gehling.dk/2010/02/how-to-make-rails-routing-case-insensitive/comment-page-1/#comment-63</link>
		<dc:creator>kate</dc:creator>
		<pubDate>Sun, 07 Nov 2010 16:06:32 +0000</pubDate>
		<guid isPermaLink="false">http://gehling.dk/?p=150#comment-63</guid>
		<description>Thanks!!!!!
I&#039;d read about PATH_INFO and had just tried replacing REQUEST_URI in your code with that, but didn&#039;t think to try it this way.
So glad I don&#039;t have to go chasing after another way to downcase routes...</description>
		<content:encoded><![CDATA[<p>Thanks!!!!!<br />
I&#8217;d read about PATH_INFO and had just tried replacing REQUEST_URI in your code with that, but didn&#8217;t think to try it this way.<br />
So glad I don&#8217;t have to go chasing after another way to downcase routes&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Kommentar til How to make Rails routing case-insensitive af Carsten</title>
		<link>http://gehling.dk/2010/02/how-to-make-rails-routing-case-insensitive/comment-page-1/#comment-62</link>
		<dc:creator>Carsten</dc:creator>
		<pubDate>Sat, 06 Nov 2010 12:40:55 +0000</pubDate>
		<guid isPermaLink="false">http://gehling.dk/?p=150#comment-62</guid>
		<description>Kate: Good news, I finally found the solition. It turned out, that Rails 3 changed its router to use the environment variable PATH_INFO instead of REQUEST_URI. Go figure.

Anyway, I&#039;ve updated the examples above to take care of both cases, as well as shown the correct way to add the middleware in Rails 3 (which is also the way you are doing it).

I hope this solves your problem. Thanks for pointing it out. :-)

- Carsten</description>
		<content:encoded><![CDATA[<p>Kate: Good news, I finally found the solition. It turned out, that Rails 3 changed its router to use the environment variable PATH_INFO instead of REQUEST_URI. Go figure.</p>
<p>Anyway, I&#8217;ve updated the examples above to take care of both cases, as well as shown the correct way to add the middleware in Rails 3 (which is also the way you are doing it).</p>
<p>I hope this solves your problem. Thanks for pointing it out. <img src='http://gehling.dk/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>- Carsten</p>
]]></content:encoded>
	</item>
	<item>
		<title>Kommentar til How to make Rails routing case-insensitive af kate</title>
		<link>http://gehling.dk/2010/02/how-to-make-rails-routing-case-insensitive/comment-page-1/#comment-61</link>
		<dc:creator>kate</dc:creator>
		<pubDate>Fri, 05 Nov 2010 14:29:35 +0000</pubDate>
		<guid isPermaLink="false">http://gehling.dk/?p=150#comment-61</guid>
		<description>Awesome, thanks. This is the best solution I&#039;ve found out there for the downcasing-routes issue.</description>
		<content:encoded><![CDATA[<p>Awesome, thanks. This is the best solution I&#8217;ve found out there for the downcasing-routes issue.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Kommentar til How to make Rails routing case-insensitive af Carsten</title>
		<link>http://gehling.dk/2010/02/how-to-make-rails-routing-case-insensitive/comment-page-1/#comment-60</link>
		<dc:creator>Carsten</dc:creator>
		<pubDate>Fri, 05 Nov 2010 14:28:25 +0000</pubDate>
		<guid isPermaLink="false">http://gehling.dk/?p=150#comment-60</guid>
		<description>I&#039;ve just started to migrate an application to Rails 3, so I will try to find a solution. I&#039;ll let you know when I&#039;ve got it.

-Carsten</description>
		<content:encoded><![CDATA[<p>I&#8217;ve just started to migrate an application to Rails 3, so I will try to find a solution. I&#8217;ll let you know when I&#8217;ve got it.</p>
<p>-Carsten</p>
]]></content:encoded>
	</item>
	<item>
		<title>Kommentar til How to make Rails routing case-insensitive af kate</title>
		<link>http://gehling.dk/2010/02/how-to-make-rails-routing-case-insensitive/comment-page-1/#comment-59</link>
		<dc:creator>kate</dc:creator>
		<pubDate>Fri, 05 Nov 2010 14:18:55 +0000</pubDate>
		<guid isPermaLink="false">http://gehling.dk/?p=150#comment-59</guid>
		<description>It actually just isn&#039;t working. I moved - config.middleware.use &quot;DowncaseRouteMiddleware&quot; - into my config/application.rb file, and am autoloading the path to my &quot;lib&quot; files, but uppercase and lowercase urls are just bringing me to completely different views</description>
		<content:encoded><![CDATA[<p>It actually just isn&#8217;t working. I moved &#8211; config.middleware.use &#8220;DowncaseRouteMiddleware&#8221; &#8211; into my config/application.rb file, and am autoloading the path to my &#8220;lib&#8221; files, but uppercase and lowercase urls are just bringing me to completely different views</p>
]]></content:encoded>
	</item>
	<item>
		<title>Kommentar til How to make Rails routing case-insensitive af Carsten</title>
		<link>http://gehling.dk/2010/02/how-to-make-rails-routing-case-insensitive/comment-page-1/#comment-58</link>
		<dc:creator>Carsten</dc:creator>
		<pubDate>Fri, 05 Nov 2010 05:18:28 +0000</pubDate>
		<guid isPermaLink="false">http://gehling.dk/?p=150#comment-58</guid>
		<description>Good question Kate. But do you actually get a deprecation warning on the above? The reason I ask is, that as far as I know, &quot;env&quot; is still the way to pass information around in the middleware stack. So I think that env[&#039;REQUEST_URI&#039;] should still be valid - as long as you&#039;re only using it in the middleware.

I will look more into it, and let you know here, if this is not the case.

- Carsten</description>
		<content:encoded><![CDATA[<p>Good question Kate. But do you actually get a deprecation warning on the above? The reason I ask is, that as far as I know, &#8220;env&#8221; is still the way to pass information around in the middleware stack. So I think that env['REQUEST_URI'] should still be valid &#8211; as long as you&#8217;re only using it in the middleware.</p>
<p>I will look more into it, and let you know here, if this is not the case.</p>
<p>- Carsten</p>
]]></content:encoded>
	</item>
</channel>
</rss>

