<?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: RESTful admin controllers and views with Rails</title>
	<atom:link href="http://www.rubyfleebie.com/restful-admin-controllers-and-views-with-rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rubyfleebie.com/restful-admin-controllers-and-views-with-rails/</link>
	<description>Because programming should be fun</description>
	<lastBuildDate>Wed, 04 Jan 2012 05:17:14 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Max</title>
		<link>http://www.rubyfleebie.com/restful-admin-controllers-and-views-with-rails/comment-page-1/#comment-1328</link>
		<dc:creator>Max</dc:creator>
		<pubDate>Sun, 26 Dec 2010 18:43:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyfleebie.com/restful-admin-controllers-and-views-with-rails/#comment-1328</guid>
		<description>Just to put my 2 cents in. Most of the time administrative views are completely different to what normal users see. Take WordPress for example, there&#039;s little to no &quot;repeating yourself&quot;! But, if you don&#039;t have a CMS then use partials.</description>
		<content:encoded><![CDATA[<p>Just to put my 2 cents in. Most of the time administrative views are completely different to what normal users see. Take WordPress for example, there&#8217;s little to no &#8220;repeating yourself&#8221;! But, if you don&#8217;t have a CMS then use partials.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RESSOURCES FOR THOSE WHO HELP</title>
		<link>http://www.rubyfleebie.com/restful-admin-controllers-and-views-with-rails/comment-page-1/#comment-1006</link>
		<dc:creator>RESSOURCES FOR THOSE WHO HELP</dc:creator>
		<pubDate>Fri, 18 Jun 2010 20:51:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyfleebie.com/restful-admin-controllers-and-views-with-rails/#comment-1006</guid>
		<description>&lt;strong&gt;PTSD Reference List (Alpha)...&lt;/strong&gt;

I found your entry interesting thus I&#039;ve added a Trackback to it on my weblog :)...</description>
		<content:encoded><![CDATA[<p><strong>PTSD Reference List (Alpha)&#8230;</strong></p>
<p>I found your entry interesting thus I&#8217;ve added a Trackback to it on my weblog :)&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank</title>
		<link>http://www.rubyfleebie.com/restful-admin-controllers-and-views-with-rails/comment-page-1/#comment-952</link>
		<dc:creator>Frank</dc:creator>
		<pubDate>Fri, 23 Apr 2010 20:54:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyfleebie.com/restful-admin-controllers-and-views-with-rails/#comment-952</guid>
		<description>@Dan, glad that you found the post useful!

Instead of DRY, it should be TNRYBDBAAI : Try Not Repeating Yourself But Don&#039;t Be Anal About It.</description>
		<content:encoded><![CDATA[<p>@Dan, glad that you found the post useful!</p>
<p>Instead of DRY, it should be TNRYBDBAAI : Try Not Repeating Yourself But Don&#8217;t Be Anal About It.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://www.rubyfleebie.com/restful-admin-controllers-and-views-with-rails/comment-page-1/#comment-951</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Fri, 23 Apr 2010 13:48:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyfleebie.com/restful-admin-controllers-and-views-with-rails/#comment-951</guid>
		<description>It&#039;s unbelievable how this post helped me in the last project I&#039;m working on. I avoid complex structures of ifs everywhere... even if sometimes, I have to repeat myself, it&#039;s much clearer.</description>
		<content:encoded><![CDATA[<p>It&#8217;s unbelievable how this post helped me in the last project I&#8217;m working on. I avoid complex structures of ifs everywhere&#8230; even if sometimes, I have to repeat myself, it&#8217;s much clearer.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank</title>
		<link>http://www.rubyfleebie.com/restful-admin-controllers-and-views-with-rails/comment-page-1/#comment-944</link>
		<dc:creator>Frank</dc:creator>
		<pubDate>Thu, 08 Apr 2010 04:01:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyfleebie.com/restful-admin-controllers-and-views-with-rails/#comment-944</guid>
		<description>@Brandon Hauff

Very good point. But IMO it is a scenario where it&#039;s ok to slack off with the DRY principle. It&#039;s better to repeat a few things here and there with your views than to pollute your app with some ugly conditional statements.

Thanks for your comment!</description>
		<content:encoded><![CDATA[<p>@Brandon Hauff</p>
<p>Very good point. But IMO it is a scenario where it&#8217;s ok to slack off with the DRY principle. It&#8217;s better to repeat a few things here and there with your views than to pollute your app with some ugly conditional statements.</p>
<p>Thanks for your comment!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brandon Hauff</title>
		<link>http://www.rubyfleebie.com/restful-admin-controllers-and-views-with-rails/comment-page-1/#comment-940</link>
		<dc:creator>Brandon Hauff</dc:creator>
		<pubDate>Wed, 07 Apr 2010 14:32:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyfleebie.com/restful-admin-controllers-and-views-with-rails/#comment-940</guid>
		<description>I have been using this technique for a while now on a very large app.  I not only have admins and normal users, but some in between types.  The namespacing works great to separate out these concerns.  My only complaint with the technique is that views tend to not be dry, so sometimes a single UI change might require editing multiple views across all of the namespaces.</description>
		<content:encoded><![CDATA[<p>I have been using this technique for a while now on a very large app.  I not only have admins and normal users, but some in between types.  The namespacing works great to separate out these concerns.  My only complaint with the technique is that views tend to not be dry, so sometimes a single UI change might require editing multiple views across all of the namespaces.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank</title>
		<link>http://www.rubyfleebie.com/restful-admin-controllers-and-views-with-rails/comment-page-1/#comment-938</link>
		<dc:creator>Frank</dc:creator>
		<pubDate>Tue, 06 Apr 2010 19:38:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyfleebie.com/restful-admin-controllers-and-views-with-rails/#comment-938</guid>
		<description>@mike wyatt

Yes, this is without a doubt a more elegant way to fetch the resources. But what about before and after filters that must not be called when you&#039;re on the admin side or the other way around? It means more conditionals expressions and more obstrusive code to write. And then there are the update and create actions that will differ and generate some &quot;if&quot; statements... and then there are the views, the partials...  Exceptions start to popup everywhere and the nightmare begins!

Thanks for your code snippet though. I like how you made it generic and named the method &quot;resources&quot;. It keeps you thinking in REST mode.</description>
		<content:encoded><![CDATA[<p>@mike wyatt</p>
<p>Yes, this is without a doubt a more elegant way to fetch the resources. But what about before and after filters that must not be called when you&#8217;re on the admin side or the other way around? It means more conditionals expressions and more obstrusive code to write. And then there are the update and create actions that will differ and generate some &#8220;if&#8221; statements&#8230; and then there are the views, the partials&#8230;  Exceptions start to popup everywhere and the nightmare begins!</p>
<p>Thanks for your code snippet though. I like how you made it generic and named the method &#8220;resources&#8221;. It keeps you thinking in REST mode.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mike wyatt</title>
		<link>http://www.rubyfleebie.com/restful-admin-controllers-and-views-with-rails/comment-page-1/#comment-937</link>
		<dc:creator>mike wyatt</dc:creator>
		<pubDate>Tue, 06 Apr 2010 19:24:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyfleebie.com/restful-admin-controllers-and-views-with-rails/#comment-937</guid>
		<description>while I do mostly agree with you, your exampled reasoning could be resolved with something like this

http://gist.github.com/357973</description>
		<content:encoded><![CDATA[<p>while I do mostly agree with you, your exampled reasoning could be resolved with something like this</p>
<p><a href="http://gist.github.com/357973" rel="nofollow">http://gist.github.com/357973</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank</title>
		<link>http://www.rubyfleebie.com/restful-admin-controllers-and-views-with-rails/comment-page-1/#comment-936</link>
		<dc:creator>Frank</dc:creator>
		<pubDate>Tue, 06 Apr 2010 18:42:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyfleebie.com/restful-admin-controllers-and-views-with-rails/#comment-936</guid>
		<description>@Jan,

Yeah this thing with the form_for helper is not obvious at all IMO. I&#039;m glad it was helpful to you!</description>
		<content:encoded><![CDATA[<p>@Jan,</p>
<p>Yeah this thing with the form_for helper is not obvious at all IMO. I&#8217;m glad it was helpful to you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jan</title>
		<link>http://www.rubyfleebie.com/restful-admin-controllers-and-views-with-rails/comment-page-1/#comment-935</link>
		<dc:creator>Jan</dc:creator>
		<pubDate>Tue, 06 Apr 2010 18:23:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyfleebie.com/restful-admin-controllers-and-views-with-rails/#comment-935</guid>
		<description>I was just trying to figure out the form_for part yesterday. Thank you!</description>
		<content:encoded><![CDATA[<p>I was just trying to figure out the form_for part yesterday. Thank you!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

