<?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/"
	xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Beginners Tutorial: Routing in Rails 2.0 (with REST) &#8211; Part 2 of n</title>
	<atom:link href="http://darynholmes.wordpress.com/2008/03/25/beginners-tutorial-routing-in-rails-20-with-rest-part-2-of-n/feed/" rel="self" type="application/rss+xml" />
	<link>http://darynholmes.wordpress.com/2008/03/25/beginners-tutorial-routing-in-rails-20-with-rest-part-2-of-n/</link>
	<description></description>
	<lastBuildDate>Sat, 07 Nov 2009 13:46:32 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Ruby on Rails Tutorials (version 2.0+ compatible) &#124; Seeds To Trees</title>
		<link>http://darynholmes.wordpress.com/2008/03/25/beginners-tutorial-routing-in-rails-20-with-rest-part-2-of-n/#comment-516</link>
		<dc:creator>Ruby on Rails Tutorials (version 2.0+ compatible) &#124; Seeds To Trees</dc:creator>
		<pubDate>Wed, 01 Apr 2009 21:26:05 +0000</pubDate>
		<guid isPermaLink="false">http://darynholmes.wordpress.com/?p=52#comment-516</guid>
		<description>[...] Beginners guide/Learning Routes part 1 part 2 [...]</description>
		<content:encoded><![CDATA[<p>[...] Beginners guide/Learning Routes part 1 part 2 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Elías</title>
		<link>http://darynholmes.wordpress.com/2008/03/25/beginners-tutorial-routing-in-rails-20-with-rest-part-2-of-n/#comment-485</link>
		<dc:creator>Elías</dc:creator>
		<pubDate>Mon, 10 Nov 2008 17:29:35 +0000</pubDate>
		<guid isPermaLink="false">http://darynholmes.wordpress.com/?p=52#comment-485</guid>
		<description>Hello,

Well I am working on an app and wanted to make some changes on the
URL&#039;s. I have the following:

#---
map.resources :groups do &#124;groups&#124;
    groups.resources :events, :member =&gt; { :invite =&gt; :get }
end
#---

So my events are mapping into:

#---
www.xxx.com/groups/1/events/2
#---

What I want to do now is take out the &#039;group&#039; from there and only
leave the id. Make it look like this:

#---
www.xxx.com/1/events/2
#---

I tried something like the following and now I have an events_path
route that works.

#---
map.events &#039;:group_id/events&#039;, :controller =&gt; &#039;events&#039;, :action =&gt;
&#039;index&#039;
#---

My question is: Should I then repeat this same line 5 times to map all
the other actions? That without counting the member actions? It
seems to me that when using map.resources there&#039;s no way of taking the
controller name out of there. I think the only way is mapping each
routes independently, which is a long and tedious thing to do.

map.events_new ....
map.events_create...
...
..

It&#039;s there any other way to do this?

Thanks for your attention,

Elías</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>Well I am working on an app and wanted to make some changes on the<br />
URL&#8217;s. I have the following:</p>
<p>#&#8212;<br />
map.resources :groups do |groups|<br />
    groups.resources :events, :member =&gt; { :invite =&gt; :get }<br />
end<br />
#&#8212;</p>
<p>So my events are mapping into:</p>
<p>#&#8212;<br />
<a href="http://www.xxx.com/groups/1/events/2" rel="nofollow">http://www.xxx.com/groups/1/events/2</a><br />
#&#8212;</p>
<p>What I want to do now is take out the &#8216;group&#8217; from there and only<br />
leave the id. Make it look like this:</p>
<p>#&#8212;<br />
<a href="http://www.xxx.com/1/events/2" rel="nofollow">http://www.xxx.com/1/events/2</a><br />
#&#8212;</p>
<p>I tried something like the following and now I have an events_path<br />
route that works.</p>
<p>#&#8212;<br />
map.events &#8216;:group_id/events&#8217;, :controller =&gt; &#8216;events&#8217;, :action =&gt;<br />
&#8216;index&#8217;<br />
#&#8212;</p>
<p>My question is: Should I then repeat this same line 5 times to map all<br />
the other actions? That without counting the member actions? It<br />
seems to me that when using map.resources there&#8217;s no way of taking the<br />
controller name out of there. I think the only way is mapping each<br />
routes independently, which is a long and tedious thing to do.</p>
<p>map.events_new &#8230;.<br />
map.events_create&#8230;<br />
&#8230;<br />
..</p>
<p>It&#8217;s there any other way to do this?</p>
<p>Thanks for your attention,</p>
<p>Elías</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DanS</title>
		<link>http://darynholmes.wordpress.com/2008/03/25/beginners-tutorial-routing-in-rails-20-with-rest-part-2-of-n/#comment-474</link>
		<dc:creator>DanS</dc:creator>
		<pubDate>Mon, 20 Oct 2008 13:25:32 +0000</pubDate>
		<guid isPermaLink="false">http://darynholmes.wordpress.com/?p=52#comment-474</guid>
		<description>I believe there is a typo in the second code fragment shown on this page:

   1. :map.connect &#039;&#039;, :controller =&gt; &quot;albums&quot;, :action =&gt; &quot;index&quot;  

should not have the leading colon.  The corrected line would be:

   1. map.connect &#039;&#039;, :controller =&gt; &quot;albums&quot;, :action =&gt; &quot;index&quot;  


Thanks for posting this tutorial.  It has increased my understanding of Rails routing.</description>
		<content:encoded><![CDATA[<p>I believe there is a typo in the second code fragment shown on this page:</p>
<p>   1. :map.connect &#8221;, :controller =&gt; &#8220;albums&#8221;, :action =&gt; &#8220;index&#8221;  </p>
<p>should not have the leading colon.  The corrected line would be:</p>
<p>   1. map.connect &#8221;, :controller =&gt; &#8220;albums&#8221;, :action =&gt; &#8220;index&#8221;  </p>
<p>Thanks for posting this tutorial.  It has increased my understanding of Rails routing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dvddoc</title>
		<link>http://darynholmes.wordpress.com/2008/03/25/beginners-tutorial-routing-in-rails-20-with-rest-part-2-of-n/#comment-462</link>
		<dc:creator>dvddoc</dc:creator>
		<pubDate>Sat, 11 Oct 2008 10:06:38 +0000</pubDate>
		<guid isPermaLink="false">http://darynholmes.wordpress.com/?p=52#comment-462</guid>
		<description>thanks Daryn.
good guys</description>
		<content:encoded><![CDATA[<p>thanks Daryn.<br />
good guys</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Liana</title>
		<link>http://darynholmes.wordpress.com/2008/03/25/beginners-tutorial-routing-in-rails-20-with-rest-part-2-of-n/#comment-434</link>
		<dc:creator>Liana</dc:creator>
		<pubDate>Fri, 12 Sep 2008 20:54:49 +0000</pubDate>
		<guid isPermaLink="false">http://darynholmes.wordpress.com/?p=52#comment-434</guid>
		<description>Wordpress question for ya... what&#039;s the name of the plugin you use to render Ruby on Rails code so prettily on your site?

Thanks so much,
Liana</description>
		<content:encoded><![CDATA[<p>WordPress question for ya&#8230; what&#8217;s the name of the plugin you use to render Ruby on Rails code so prettily on your site?</p>
<p>Thanks so much,<br />
Liana</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: darynholmes</title>
		<link>http://darynholmes.wordpress.com/2008/03/25/beginners-tutorial-routing-in-rails-20-with-rest-part-2-of-n/#comment-402</link>
		<dc:creator>darynholmes</dc:creator>
		<pubDate>Fri, 22 Aug 2008 14:51:03 +0000</pubDate>
		<guid isPermaLink="false">http://darynholmes.wordpress.com/?p=52#comment-402</guid>
		<description>I have fixed line 81. I needed to add some extra spaces into the line to stop WordPress from manipulating it. My apologise for the confusion that arose from that.
- Daryn</description>
		<content:encoded><![CDATA[<p>I have fixed line 81. I needed to add some extra spaces into the line to stop WordPress from manipulating it. My apologise for the confusion that arose from that.<br />
- Daryn</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Asanga Bandara Wijekoon</title>
		<link>http://darynholmes.wordpress.com/2008/03/25/beginners-tutorial-routing-in-rails-20-with-rest-part-2-of-n/#comment-397</link>
		<dc:creator>Asanga Bandara Wijekoon</dc:creator>
		<pubDate>Thu, 21 Aug 2008 16:30:24 +0000</pubDate>
		<guid isPermaLink="false">http://darynholmes.wordpress.com/?p=52#comment-397</guid>
		<description>hi Daryn,
I know there should end the &#039;}&#039;. But didn&#039;t find the place for &#039;{&#039; for the ending the code. Code is 
format.html {redirect_to(:controller =&gt; &quot;albums&quot;, :action =&gt; &quot;index&quot;)}&amp;quot } 

first error and all the errors for this line and the error is 

music_store/app/controllers/albums_controller.rb:81: syntax error, unexpected tIDENTIFIER, expecting kDO or ‘{’ or ‘(’
format.html {redirect_to(:controller =&gt; “albums”, :action =&gt; “index”)}&amp;quot }

I try to fix this error  but fail. 

thanks lot about ur consideration. 
-Asanga</description>
		<content:encoded><![CDATA[<p>hi Daryn,<br />
I know there should end the &#8216;}&#8217;. But didn&#8217;t find the place for &#8216;{&#8216; for the ending the code. Code is<br />
format.html {redirect_to(:controller =&gt; &#8220;albums&#8221;, :action =&gt; &#8220;index&#8221;)}&amp;quot } </p>
<p>first error and all the errors for this line and the error is </p>
<p>music_store/app/controllers/albums_controller.rb:81: syntax error, unexpected tIDENTIFIER, expecting kDO or ‘{’ or ‘(’<br />
format.html {redirect_to(:controller =&gt; “albums”, :action =&gt; “index”)}&amp;quot }</p>
<p>I try to fix this error  but fail. </p>
<p>thanks lot about ur consideration.<br />
-Asanga</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: darynholmes</title>
		<link>http://darynholmes.wordpress.com/2008/03/25/beginners-tutorial-routing-in-rails-20-with-rest-part-2-of-n/#comment-396</link>
		<dc:creator>darynholmes</dc:creator>
		<pubDate>Thu, 21 Aug 2008 15:59:45 +0000</pubDate>
		<guid isPermaLink="false">http://darynholmes.wordpress.com/?p=52#comment-396</guid>
		<description>Hi Asanga, let me ask you to do one more check. Make sure that you have once closing bracket for each opening one - notice that I only have one &#039;}&#039;.

If that does not fix your problem, let me know and we can fix it via email.
- Daryn</description>
		<content:encoded><![CDATA[<p>Hi Asanga, let me ask you to do one more check. Make sure that you have once closing bracket for each opening one &#8211; notice that I only have one &#8216;}&#8217;.</p>
<p>If that does not fix your problem, let me know and we can fix it via email.<br />
- Daryn</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Asanga Bandara Wijekoon</title>
		<link>http://darynholmes.wordpress.com/2008/03/25/beginners-tutorial-routing-in-rails-20-with-rest-part-2-of-n/#comment-395</link>
		<dc:creator>Asanga Bandara Wijekoon</dc:creator>
		<pubDate>Thu, 21 Aug 2008 15:53:03 +0000</pubDate>
		<guid isPermaLink="false">http://darynholmes.wordpress.com/?p=52#comment-395</guid>
		<description>thanks lot. 
but still there are some errors 
music_store/app/controllers/albums_controller.rb:81: syntax error, unexpected tIDENTIFIER, expecting kDO or &#039;{&#039; or &#039;(&#039;
      format.html {redirect_to(:controller =&gt; &quot;albums&quot;, :action =&gt; &quot;index&quot;)}&amp;quot }

If u can plz consider this also

thanks 
asnaga</description>
		<content:encoded><![CDATA[<p>thanks lot.<br />
but still there are some errors<br />
music_store/app/controllers/albums_controller.rb:81: syntax error, unexpected tIDENTIFIER, expecting kDO or &#8216;{&#8216; or &#8216;(&#8216;<br />
      format.html {redirect_to(:controller =&gt; &#8220;albums&#8221;, :action =&gt; &#8220;index&#8221;)}&amp;quot }</p>
<p>If u can plz consider this also</p>
<p>thanks<br />
asnaga</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://darynholmes.wordpress.com/2008/03/25/beginners-tutorial-routing-in-rails-20-with-rest-part-2-of-n/#comment-394</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Thu, 21 Aug 2008 14:59:39 +0000</pubDate>
		<guid isPermaLink="false">http://darynholmes.wordpress.com/?p=52#comment-394</guid>
		<description>Hi Daryn,

I figured it out myself.
Thanks again for this enlightening series!
Onto part 3 now.

Cheers,
Mark</description>
		<content:encoded><![CDATA[<p>Hi Daryn,</p>
<p>I figured it out myself.<br />
Thanks again for this enlightening series!<br />
Onto part 3 now.</p>
<p>Cheers,<br />
Mark</p>
]]></content:encoded>
	</item>
</channel>
</rss>
