<?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>Tue, 30 Mar 2010 18:10:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Daren</title>
		<link>http://icebergist.com/posts/restful-admin-namespaced-controller-using-scaffolding/comment-page-1#comment-137</link>
		<dc:creator>Daren</dc:creator>
		<pubDate>Fri, 26 Mar 2010 18:04:30 +0000</pubDate>
		<guid isPermaLink="false">http://icebergist.com/?p=14#comment-137</guid>
		<description>Sorry ignore my previous comment, it was simply a Rails 3 Beta issue, I was not including the default javascript files, specifically rails.js and prototype.js...all working fine now!</description>
		<content:encoded><![CDATA[<p>Sorry ignore my previous comment, it was simply a Rails 3 Beta issue, I was not including the default javascript files, specifically rails.js and prototype.js&#8230;all working fine now!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daren</title>
		<link>http://icebergist.com/posts/restful-admin-namespaced-controller-using-scaffolding/comment-page-1#comment-136</link>
		<dc:creator>Daren</dc:creator>
		<pubDate>Fri, 26 Mar 2010 17:27:18 +0000</pubDate>
		<guid isPermaLink="false">http://icebergist.com/?p=14#comment-136</guid>
		<description>@Jamesw - for me the destroy link actually goes to the Show Action, rather than destroying the record.

Did anyone else have the same problem?  Has anyone got a solution for this?</description>
		<content:encoded><![CDATA[<p>@Jamesw &#8211; for me the destroy link actually goes to the Show Action, rather than destroying the record.</p>
<p>Did anyone else have the same problem?  Has anyone got a solution for this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Slobodan Kovačević</title>
		<link>http://icebergist.com/posts/restful-admin-namespaced-controller-using-scaffolding/comment-page-1#comment-135</link>
		<dc:creator>Slobodan Kovačević</dc:creator>
		<pubDate>Fri, 19 Mar 2010 08:00:40 +0000</pubDate>
		<guid isPermaLink="false">http://icebergist.com/?p=14#comment-135</guid>
		<description>@Reinaldo As far as I know there&#039;s no option to generate scaffold specifically for certain namespace.</description>
		<content:encoded><![CDATA[<p>@Reinaldo As far as I know there&#8217;s no option to generate scaffold specifically for certain namespace.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Reinaldo</title>
		<link>http://icebergist.com/posts/restful-admin-namespaced-controller-using-scaffolding/comment-page-1#comment-134</link>
		<dc:creator>Reinaldo</dc:creator>
		<pubDate>Thu, 18 Mar 2010 20:32:11 +0000</pubDate>
		<guid isPermaLink="false">http://icebergist.com/?p=14#comment-134</guid>
		<description>Is it possible to create a command like 

./script/generate scaffold_admin user name:string

and the structures will be created on the right places?</description>
		<content:encoded><![CDATA[<p>Is it possible to create a command like </p>
<p>./script/generate scaffold_admin user name:string</p>
<p>and the structures will be created on the right places?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Slobodan Kovačević</title>
		<link>http://icebergist.com/posts/restful-admin-namespaced-controller-using-scaffolding/comment-page-1#comment-133</link>
		<dc:creator>Slobodan Kovačević</dc:creator>
		<pubDate>Tue, 16 Feb 2010 10:41:52 +0000</pubDate>
		<guid isPermaLink="false">http://icebergist.com/?p=14#comment-133</guid>
		<description>@Ankit The whole point is to have one model which is used for both frontend and admin controllers.</description>
		<content:encoded><![CDATA[<p>@Ankit The whole point is to have one model which is used for both frontend and admin controllers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ankit Varshney</title>
		<link>http://icebergist.com/posts/restful-admin-namespaced-controller-using-scaffolding/comment-page-1#comment-132</link>
		<dc:creator>Ankit Varshney</dc:creator>
		<pubDate>Tue, 16 Feb 2010 04:27:33 +0000</pubDate>
		<guid isPermaLink="false">http://icebergist.com/?p=14#comment-132</guid>
		<description>And also there is no need to run two separate commands one for controller and one for scaffold. Simply run :

./script/generate scaffold admin/user name:string

This is true for Rails 2.3.5.</description>
		<content:encoded><![CDATA[<p>And also there is no need to run two separate commands one for controller and one for scaffold. Simply run :</p>
<p>./script/generate scaffold admin/user name:string</p>
<p>This is true for Rails 2.3.5.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ankit Varshney</title>
		<link>http://icebergist.com/posts/restful-admin-namespaced-controller-using-scaffolding/comment-page-1#comment-131</link>
		<dc:creator>Ankit Varshney</dc:creator>
		<pubDate>Tue, 16 Feb 2010 04:21:23 +0000</pubDate>
		<guid isPermaLink="false">http://icebergist.com/?p=14#comment-131</guid>
		<description>Why don&#039;t we move user model in admin folder? Like admin\user.rb and also changing the class name to Admin::User. By doing this there is no need to put :admin in any RESTful path.</description>
		<content:encoded><![CDATA[<p>Why don&#8217;t we move user model in admin folder? Like admin\user.rb and also changing the class name to Admin::User. By doing this there is no need to put :admin in any RESTful path.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jamesw</title>
		<link>http://icebergist.com/posts/restful-admin-namespaced-controller-using-scaffolding/comment-page-1#comment-128</link>
		<dc:creator>Jamesw</dc:creator>
		<pubDate>Thu, 14 Jan 2010 19:04:23 +0000</pubDate>
		<guid isPermaLink="false">http://icebergist.com/?p=14#comment-128</guid>
		<description>@Daniel the destroy link should use the [:admin, user] notation.
link_to &#039;Destroy&#039;, [:admin, theme], :confirm =&gt; &#039;Are you sure?&#039;, :method =&gt; :delete</description>
		<content:encoded><![CDATA[<p>@Daniel the destroy link should use the [:admin, user] notation.<br />
link_to &#8216;Destroy&#8217;, [:admin, theme], :confirm =&gt; &#8216;Are you sure?&#8217;, :method =&gt; :delete</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pawel</title>
		<link>http://icebergist.com/posts/restful-admin-namespaced-controller-using-scaffolding/comment-page-1#comment-127</link>
		<dc:creator>pawel</dc:creator>
		<pubDate>Tue, 12 Jan 2010 12:37:19 +0000</pubDate>
		<guid isPermaLink="false">http://icebergist.com/?p=14#comment-127</guid>
		<description>Thanks Slobodan, it&#039;s a very useful tutorial. I have a one question: is it exists some newer solution? I ask you because this was posted on September 2008.

Greetings from Poland</description>
		<content:encoded><![CDATA[<p>Thanks Slobodan, it&#8217;s a very useful tutorial. I have a one question: is it exists some newer solution? I ask you because this was posted on September 2008.</p>
<p>Greetings from Poland</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Slobodan Kovačević</title>
		<link>http://icebergist.com/posts/restful-admin-namespaced-controller-using-scaffolding/comment-page-1#comment-126</link>
		<dc:creator>Slobodan Kovačević</dc:creator>
		<pubDate>Mon, 11 Jan 2010 09:46:35 +0000</pubDate>
		<guid isPermaLink="false">http://icebergist.com/?p=14#comment-126</guid>
		<description>Zak, to &quot;protect the namespace&quot; you actually need to limit access to each controller (their actions to be precise) within that namespace. Usually you will add some before_filters that will handle authorization. Something like this:

before_filter :admin_only

Exact way to do this varies depending on what you use (if any) as an user system. For example, if you use Clearance you can do like this: http://wiki.github.com/thoughtbot/clearance/admin</description>
		<content:encoded><![CDATA[<p>Zak, to &#8220;protect the namespace&#8221; you actually need to limit access to each controller (their actions to be precise) within that namespace. Usually you will add some before_filters that will handle authorization. Something like this:</p>
<p>before_filter :admin_only</p>
<p>Exact way to do this varies depending on what you use (if any) as an user system. For example, if you use Clearance you can do like this: <a href="http://wiki.github.com/thoughtbot/clearance/admin" rel="nofollow">http://wiki.github.com/thoughtbot/clearance/admin</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
