<?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"
	>
<channel>
	<title>Comments on: Administration Namespacing</title>
	<atom:link href="http://frozenplague.net/2008/03/administration-namespacing/feed/" rel="self" type="application/rss+xml" />
	<link>http://frozenplague.net/2008/03/administration-namespacing/</link>
	<description>Life &#38; Everything Else</description>
	<pubDate>Thu, 08 Jan 2009 11:16:26 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: Leonardo Borges</title>
		<link>http://frozenplague.net/2008/03/administration-namespacing/#comment-3375</link>
		<dc:creator>Leonardo Borges</dc:creator>
		<pubDate>Mon, 25 Aug 2008 08:21:52 +0000</pubDate>
		<guid isPermaLink="false">http://frozenplague.net/2008/03/16/administration-namespacing/#comment-3375</guid>
		<description>Nice tutorial! Very useful!

Tks</description>
		<content:encoded><![CDATA[<p>Nice tutorial! Very useful!</p>
<p>Tks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fabio</title>
		<link>http://frozenplague.net/2008/03/administration-namespacing/#comment-2705</link>
		<dc:creator>Fabio</dc:creator>
		<pubDate>Tue, 05 Aug 2008 23:22:09 +0000</pubDate>
		<guid isPermaLink="false">http://frozenplague.net/2008/03/16/administration-namespacing/#comment-2705</guid>
		<description>Sorry, I have done the changes manually and was missing things (the admin directory).
Thanks for the great tutorial!</description>
		<content:encoded><![CDATA[<p>Sorry, I have done the changes manually and was missing things (the admin directory).<br />
Thanks for the great tutorial!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Radar</title>
		<link>http://frozenplague.net/2008/03/administration-namespacing/#comment-2703</link>
		<dc:creator>Radar</dc:creator>
		<pubDate>Tue, 05 Aug 2008 22:16:20 +0000</pubDate>
		<guid isPermaLink="false">http://frozenplague.net/2008/03/16/administration-namespacing/#comment-2703</guid>
		<description>Hey fabio, are you using the Rails in-built testing? Sure your controller is called CitiesController and is namespaced under admin?</description>
		<content:encoded><![CDATA[<p>Hey fabio, are you using the Rails in-built testing? Sure your controller is called CitiesController and is namespaced under admin?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fabio</title>
		<link>http://frozenplague.net/2008/03/administration-namespacing/#comment-2585</link>
		<dc:creator>Fabio</dc:creator>
		<pubDate>Fri, 01 Aug 2008 21:38:14 +0000</pubDate>
		<guid isPermaLink="false">http://frozenplague.net/2008/03/16/administration-namespacing/#comment-2585</guid>
		<description>Hello, thanks for the post!
But how do I refactor my tests? I renamed them to Admin::CitiesControllerTest, and now I get this:

ActionController::NonInferrableControllerError: Unable to determine the controller to test from Admin::CitiesControllerTest. You'll need to specify it using 'tests YourController' in your test case definition. This could mean that Admin::CitiesController does not exist or it contains syntax errors

Do I really need to specify my controller to be tested?</description>
		<content:encoded><![CDATA[<p>Hello, thanks for the post!<br />
But how do I refactor my tests? I renamed them to Admin::CitiesControllerTest, and now I get this:</p>
<p>ActionController::NonInferrableControllerError: Unable to determine the controller to test from Admin::CitiesControllerTest. You&#8217;ll need to specify it using &#8216;tests YourController&#8217; in your test case definition. This could mean that Admin::CitiesController does not exist or it contains syntax errors</p>
<p>Do I really need to specify my controller to be tested?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Radar</title>
		<link>http://frozenplague.net/2008/03/administration-namespacing/#comment-1781</link>
		<dc:creator>Radar</dc:creator>
		<pubDate>Sat, 14 Jun 2008 09:08:44 +0000</pubDate>
		<guid isPermaLink="false">http://frozenplague.net/2008/03/16/administration-namespacing/#comment-1781</guid>
		<description>Anyone else reading these comments please realise that using @f as a block variable will be deprecated as of 1.9, and is not considered best practice.</description>
		<content:encoded><![CDATA[<p>Anyone else reading these comments please realise that using @f as a block variable will be deprecated as of 1.9, and is not considered best practice.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Radar</title>
		<link>http://frozenplague.net/2008/03/administration-namespacing/#comment-732</link>
		<dc:creator>Radar</dc:creator>
		<pubDate>Tue, 08 Apr 2008 06:37:17 +0000</pubDate>
		<guid isPermaLink="false">http://frozenplague.net/2008/03/16/administration-namespacing/#comment-732</guid>
		<description>Hey oliver, instead of passing the form object as a local to your partial, you could define it as &#124;@f&#124;, that way you save yourself some typing!

To submit to the admin form you need to specify in the form_for that it's namespaced:

&lt;span class='term'&gt;form_for [:admin, @product] do &#124;@f&#124;&lt;/span&gt;

For example.</description>
		<content:encoded><![CDATA[<p>Hey oliver, instead of passing the form object as a local to your partial, you could define it as |@f|, that way you save yourself some typing!</p>
<p>To submit to the admin form you need to specify in the form_for that it&#8217;s namespaced:</p>
<p><span class='term'>form_for [:admin, @product] do |@f|</span></p>
<p>For example.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: oliver</title>
		<link>http://frozenplague.net/2008/03/administration-namespacing/#comment-700</link>
		<dc:creator>oliver</dc:creator>
		<pubDate>Sun, 06 Apr 2008 19:59:27 +0000</pubDate>
		<guid isPermaLink="false">http://frozenplague.net/2008/03/16/administration-namespacing/#comment-700</guid>
		<description>Sorry, the code got removed.  The form part looks like this:
form_for(@admin_product) do &#124;f&#124;
And then I render a partial.</description>
		<content:encoded><![CDATA[<p>Sorry, the code got removed.  The form part looks like this:<br />
form_for(@admin_product) do |f|<br />
And then I render a partial.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: oliver</title>
		<link>http://frozenplague.net/2008/03/administration-namespacing/#comment-699</link>
		<dc:creator>oliver</dc:creator>
		<pubDate>Sun, 06 Apr 2008 19:58:04 +0000</pubDate>
		<guid isPermaLink="false">http://frozenplague.net/2008/03/16/administration-namespacing/#comment-699</guid>
		<description>How do you make the edit/add forms submit to the admin controller? My edit for looks like this: (I hope these posts support code...)


   "shared/product_form", :locals =&#62; {:f =&#62; f, :label_text =&#62; "Update"} %&#62;


Since it's using the form for and the actual object it submits to the normal product controller. I've tried a few things, but I can't figure out how to make it submit to the admin/product_controller.  Any help would be appreciated. Thanks.</description>
		<content:encoded><![CDATA[<p>How do you make the edit/add forms submit to the admin controller? My edit for looks like this: (I hope these posts support code&#8230;)</p>
<p>   &#8220;shared/product_form&#8221;, :locals =&gt; {:f =&gt; f, :label_text =&gt; &#8220;Update&#8221;} %&gt;</p>
<p>Since it&#8217;s using the form for and the actual object it submits to the normal product controller. I&#8217;ve tried a few things, but I can&#8217;t figure out how to make it submit to the admin/product_controller.  Any help would be appreciated. Thanks.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
