<?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 namespaced controller using scaffolding</title>
	<atom:link href="http://icebergist.com/posts/restful-admin-namespaced-controller-using-scaffolding/feed" rel="self" type="application/rss+xml" />
	<link>http://icebergist.com/posts/restful-admin-namespaced-controller-using-scaffolding</link>
	<description>Exploring hidden depths of web apps business</description>
	<lastBuildDate>Thu, 17 Nov 2011 07:33:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.2</generator>
	<item>
		<title>By: John</title>
		<link>http://icebergist.com/posts/restful-admin-namespaced-controller-using-scaffolding/comment-page-1#comment-165</link>
		<dc:creator>John</dc:creator>
		<pubDate>Sun, 02 Oct 2011 13:15:58 +0000</pubDate>
		<guid isPermaLink="false">http://icebergist.com/?p=14#comment-165</guid>
		<description>Hey Man

I just want to say THANK YOU, THANK YOU.

Finally someone that could help!</description>
		<content:encoded><![CDATA[<p>Hey Man</p>
<p>I just want to say THANK YOU, THANK YOU.</p>
<p>Finally someone that could help!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin Danenberg</title>
		<link>http://icebergist.com/posts/restful-admin-namespaced-controller-using-scaffolding/comment-page-1#comment-163</link>
		<dc:creator>Kevin Danenberg</dc:creator>
		<pubDate>Sat, 03 Sep 2011 01:32:54 +0000</pubDate>
		<guid isPermaLink="false">http://icebergist.com/?p=14#comment-163</guid>
		<description>I am also having problems with my delete link simply taking me to the Show action rather than Destroy. I tried the [:admin, user] syntax suggest above, but it does not solve the problem.

link_to &#039;Destroy&#039;, [:admin, user], :confirm =&gt; &#039;Are you sure?&#039;, :method =&gt; :delete

Anyone figure this out? I&#039;m having a hard time digging for answers on this one.</description>
		<content:encoded><![CDATA[<p>I am also having problems with my delete link simply taking me to the Show action rather than Destroy. I tried the [:admin, user] syntax suggest above, but it does not solve the problem.</p>
<p>link_to &#8216;Destroy&#8217;, [:admin, user], :confirm =&gt; &#8216;Are you sure?&#8217;, :method =&gt; :delete</p>
<p>Anyone figure this out? I&#8217;m having a hard time digging for answers on this one.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: david</title>
		<link>http://icebergist.com/posts/restful-admin-namespaced-controller-using-scaffolding/comment-page-1#comment-160</link>
		<dc:creator>david</dc:creator>
		<pubDate>Wed, 20 Jul 2011 01:01:55 +0000</pubDate>
		<guid isPermaLink="false">http://icebergist.com/?p=14#comment-160</guid>
		<description>also wonder how the syntax actually works...



its bad for rails when you see things like this that work, but no one fully understands what is going on there and why it works.</description>
		<content:encoded><![CDATA[<p>also wonder how the syntax actually works&#8230;</p>
<p>its bad for rails when you see things like this that work, but no one fully understands what is going on there and why it works.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: david</title>
		<link>http://icebergist.com/posts/restful-admin-namespaced-controller-using-scaffolding/comment-page-1#comment-159</link>
		<dc:creator>david</dc:creator>
		<pubDate>Wed, 20 Jul 2011 01:00:24 +0000</pubDate>
		<guid isPermaLink="false">http://icebergist.com/?p=14#comment-159</guid>
		<description>this is STILL such important information - not sure why it&#039;s not in the rails guides????</description>
		<content:encoded><![CDATA[<p>this is STILL such important information &#8211; not sure why it&#8217;s not in the rails guides????</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: M Awais</title>
		<link>http://icebergist.com/posts/restful-admin-namespaced-controller-using-scaffolding/comment-page-1#comment-157</link>
		<dc:creator>M Awais</dc:creator>
		<pubDate>Tue, 03 May 2011 08:55:22 +0000</pubDate>
		<guid isPermaLink="false">http://icebergist.com/?p=14#comment-157</guid>
		<description>No route matches {:action=&gt;&quot;edit&quot;, :controller=&gt;&quot;admin/categories&quot;}




 &#039;Are you sure?&#039;, :method =&gt; :delete %&gt;
</description>
		<content:encoded><![CDATA[<p>No route matches {:action=&gt;&#8221;edit&#8221;, :controller=&gt;&#8221;admin/categories&#8221;}</p>
<p> &#8216;Are you sure?&#8217;, :method =&gt; :delete %&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: M Awais</title>
		<link>http://icebergist.com/posts/restful-admin-namespaced-controller-using-scaffolding/comment-page-1#comment-156</link>
		<dc:creator>M Awais</dc:creator>
		<pubDate>Tue, 03 May 2011 08:54:09 +0000</pubDate>
		<guid isPermaLink="false">http://icebergist.com/?p=14#comment-156</guid>
		<description>I am using rails 3 and I have followed all the steps but I am facing problem i.e.
Extracted source (around line #15):

12:   
13:     
14:     
15:     
16:      &#039;Are you sure?&#039;, :method =&gt; :delete %&gt;
17:   
18: </description>
		<content:encoded><![CDATA[<p>I am using rails 3 and I have followed all the steps but I am facing problem i.e.<br />
Extracted source (around line #15):</p>
<p>12:<br />
13:<br />
14:<br />
15:<br />
16:      &#8216;Are you sure?&#8217;, :method =&gt; :delete %&gt;<br />
17:<br />
18:</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Viktor</title>
		<link>http://icebergist.com/posts/restful-admin-namespaced-controller-using-scaffolding/comment-page-1#comment-154</link>
		<dc:creator>Viktor</dc:creator>
		<pubDate>Fri, 01 Apr 2011 19:41:59 +0000</pubDate>
		<guid isPermaLink="false">http://icebergist.com/?p=14#comment-154</guid>
		<description>Thanks!!! That&#039;s what I was looking for :)</description>
		<content:encoded><![CDATA[<p>Thanks!!! That&#8217;s what I was looking for <img src='http://icebergist.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rails 3練習筆記 &#124; Mr. Big Cat</title>
		<link>http://icebergist.com/posts/restful-admin-namespaced-controller-using-scaffolding/comment-page-1#comment-150</link>
		<dc:creator>Rails 3練習筆記 &#124; Mr. Big Cat</dc:creator>
		<pubDate>Sat, 29 Jan 2011 18:02:41 +0000</pubDate>
		<guid isPermaLink="false">http://icebergist.com/?p=14#comment-150</guid>
		<description>[...] Admin namespace我是照這篇做的，做了看版管理及文章管理。就一般論壇而言，像「看版管理」這種東西，一般人不會有新增、修改、刪除的權限（版主可能有修改），所以scaffold架出來的東西應該的確比較適合移到admin去，而給使用者的邏輯再手動打造。但我的實作有種不夠DRY的感覺，把view和controller的code複置兩份，感覺不太好。可以想見，其實可以利用繼承、共用函式等方式，將程式碼變的更精簡。這部份有更好的best practice嗎？ ( 6）用 Rake 撰寫自動化步驟，生假資料。寫一個 rake 可以達成以下步驟：「砍 db =&gt; 建 db =&gt; 跑 migration =&gt; 生種子資料」，另一個 rake 是生假文章與假論壇。 [...]</description>
		<content:encoded><![CDATA[<p>[...] Admin namespace我是照這篇做的，做了看版管理及文章管理。就一般論壇而言，像「看版管理」這種東西，一般人不會有新增、修改、刪除的權限（版主可能有修改），所以scaffold架出來的東西應該的確比較適合移到admin去，而給使用者的邏輯再手動打造。但我的實作有種不夠DRY的感覺，把view和controller的code複置兩份，感覺不太好。可以想見，其實可以利用繼承、共用函式等方式，將程式碼變的更精簡。這部份有更好的best practice嗎？ ( 6）用 Rake 撰寫自動化步驟，生假資料。寫一個 rake 可以達成以下步驟：「砍 db =&gt; 建 db =&gt; 跑 migration =&gt; 生種子資料」，另一個 rake 是生假文章與假論壇。 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jamesw</title>
		<link>http://icebergist.com/posts/restful-admin-namespaced-controller-using-scaffolding/comment-page-1#comment-146</link>
		<dc:creator>Jamesw</dc:creator>
		<pubDate>Tue, 28 Sep 2010 19:45:29 +0000</pubDate>
		<guid isPermaLink="false">http://icebergist.com/?p=14#comment-146</guid>
		<description>Slobodan Kovačević, 
Just an addition to the above to make the process complete

In the admin controller wherever you see a location for the XML response you also need to add the admin name space so if you have something like

format.xml  { render :xml =&gt; @email_notification, :status =&gt; :created, :location =&gt; @email_notification }

You should change it to say
format.xml  { render :xml =&gt; @email_notification, :status =&gt; :created, :location =&gt; [:admin, @email_notification] }</description>
		<content:encoded><![CDATA[<p>Slobodan Kovačević,<br />
Just an addition to the above to make the process complete</p>
<p>In the admin controller wherever you see a location for the XML response you also need to add the admin name space so if you have something like</p>
<p>format.xml  { render <img src='http://icebergist.com/wp-includes/images/smilies/icon_mad.gif' alt=':x' class='wp-smiley' /> ml =&gt; @email_notification, :status =&gt; :created, :location =&gt; @email_notification }</p>
<p>You should change it to say<br />
format.xml  { render <img src='http://icebergist.com/wp-includes/images/smilies/icon_mad.gif' alt=':x' class='wp-smiley' /> ml =&gt; @email_notification, :status =&gt; :created, :location =&gt; [:admin, @email_notification] }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob Hayward</title>
		<link>http://icebergist.com/posts/restful-admin-namespaced-controller-using-scaffolding/comment-page-1#comment-145</link>
		<dc:creator>Rob Hayward</dc:creator>
		<pubDate>Mon, 06 Sep 2010 10:56:53 +0000</pubDate>
		<guid isPermaLink="false">http://icebergist.com/?p=14#comment-145</guid>
		<description>Great article!! Just what I was after, thanks for that.

What exactly is  [:admin, @category] doing? Just prefixing &#039;/admin/&#039; in the path? 

Does this technique have a name or is just modifying routes 

Thanks
Rob</description>
		<content:encoded><![CDATA[<p>Great article!! Just what I was after, thanks for that.</p>
<p>What exactly is  [:admin, @category] doing? Just prefixing &#8216;/admin/&#8217; in the path? </p>
<p>Does this technique have a name or is just modifying routes </p>
<p>Thanks<br />
Rob</p>
]]></content:encoded>
	</item>
</channel>
</rss>

