<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Custom REST routes</title>
	<link>http://matt-beedle.com/2007/07/17/custom-rest-routes/</link>
	<description></description>
	<pubDate>Sat, 05 Jul 2008 00:34:01 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2</generator>

	<item>
		<title>By: matt</title>
		<link>http://matt-beedle.com/2007/07/17/custom-rest-routes/#comment-1510</link>
		<author>matt</author>
		<pubDate>Mon, 06 Aug 2007 21:38:31 +0000</pubDate>
		<guid>http://matt-beedle.com/2007/07/17/custom-rest-routes/#comment-1510</guid>
		<description>I'm glad to have helped you Joel.

Thanks for the workingwithrails recommendation!</description>
		<content:encoded><![CDATA[<p>I&#8217;m glad to have helped you Joel.</p>
<p>Thanks for the workingwithrails recommendation!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joël AZÉMAR</title>
		<link>http://matt-beedle.com/2007/07/17/custom-rest-routes/#comment-1425</link>
		<author>Joël AZÉMAR</author>
		<pubDate>Thu, 26 Jul 2007 15:51:42 +0000</pubDate>
		<guid>http://matt-beedle.com/2007/07/17/custom-rest-routes/#comment-1425</guid>
		<description>Thanks for this article, that helped me much !

and if you want a different form for this same new object, you can customize route like :

map.resources :venues, :new =&#62; { :good =&#62; :get } or 
map.resources :venues, :new =&#62; { :bad =&#62; :get }

This will create a named route: 
good_new_venue_path and bad_new_venue_path ;-)

look Module ActionController::Resources API for more comprehension</description>
		<content:encoded><![CDATA[<p>Thanks for this article, that helped me much !</p>
<p>and if you want a different form for this same new object, you can customize route like :</p>
<p>map.resources :venues, :new =&gt; { :good =&gt; :get } or<br />
map.resources :venues, :new =&gt; { :bad =&gt; :get }</p>
<p>This will create a named route:<br />
good_new_venue_path and bad_new_venue_path ;-)</p>
<p>look Module ActionController::Resources API for more comprehension</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank Falkenberg</title>
		<link>http://matt-beedle.com/2007/07/17/custom-rest-routes/#comment-1397</link>
		<author>Frank Falkenberg</author>
		<pubDate>Fri, 20 Jul 2007 13:41:24 +0000</pubDate>
		<guid>http://matt-beedle.com/2007/07/17/custom-rest-routes/#comment-1397</guid>
		<description>I would recommend to delegate the closed and mark_closed_down methods to the Venue model and leave the controller as dumb as possible. That makes it much simpler to refactor the controllers.</description>
		<content:encoded><![CDATA[<p>I would recommend to delegate the closed and mark_closed_down methods to the Venue model and leave the controller as dumb as possible. That makes it much simpler to refactor the controllers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: matt</title>
		<link>http://matt-beedle.com/2007/07/17/custom-rest-routes/#comment-1380</link>
		<author>matt</author>
		<pubDate>Tue, 17 Jul 2007 14:55:55 +0000</pubDate>
		<guid>http://matt-beedle.com/2007/07/17/custom-rest-routes/#comment-1380</guid>
		<description>You are absolutely right Rick.  I really should proof read my posts.  I have updated that to a PUT request.</description>
		<content:encoded><![CDATA[<p>You are absolutely right Rick.  I really should proof read my posts.  I have updated that to a PUT request.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rick DeNatale</title>
		<link>http://matt-beedle.com/2007/07/17/custom-rest-routes/#comment-1377</link>
		<author>Rick DeNatale</author>
		<pubDate>Tue, 17 Jul 2007 12:37:57 +0000</pubDate>
		<guid>http://matt-beedle.com/2007/07/17/custom-rest-routes/#comment-1377</guid>
		<description>The use of a get request to mark a venue as closed down doesn't seem very RESTful to me.

Shouldn't this be done with an update request rather than a get?</description>
		<content:encoded><![CDATA[<p>The use of a get request to mark a venue as closed down doesn&#8217;t seem very RESTful to me.</p>
<p>Shouldn&#8217;t this be done with an update request rather than a get?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
