<?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>NiceCabbage Blog &#187; rails</title>
	<atom:link href="http://www.nicecabbage.com/tag/rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nicecabbage.com</link>
	<description>Life, Design, Web Application</description>
	<lastBuildDate>Mon, 07 Jun 2010 02:03:24 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>root_url undefined</title>
		<link>http://www.nicecabbage.com/2009/08/root_url-undefined/</link>
		<comments>http://www.nicecabbage.com/2009/08/root_url-undefined/#comments</comments>
		<pubDate>Thu, 06 Aug 2009 18:18:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[TechTips]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://www.nicecabbage.com/?p=156</guid>
		<description><![CDATA[Problem
On Ruby on Rails, you see the NameError of &#8220;undefined local variable or method `root_url&#8217; for #&#60;YourController&#62;&#8221;.
Solution
You need to set map.root in config/routes.rb, such as 

  mpa.root :controller =&#62; :welcome

]]></description>
			<content:encoded><![CDATA[<h2>Problem</h2>
<p>On Ruby on Rails, you see the NameError of &#8220;undefined local variable or method `root_url&#8217; for #&lt;YourController&gt;&#8221;.</p>
<h2>Solution</h2>
<p>You need to set map.root in config/<strong>routes.rb</strong>, such as </p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;">  mpa.<span style="color:#9900CC;">root</span> <span style="color:#ff3333; font-weight:bold;">:controller</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#ff3333; font-weight:bold;">:welcome</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.nicecabbage.com/2009/08/root_url-undefined/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
