<?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: Administration Namespacing</title>
	<atom:link href="http://ryanbigg.com/2008/03/administration-namespacing/feed/" rel="self" type="application/rss+xml" />
	<link>http://ryanbigg.com/2008/03/administration-namespacing/</link>
	<description>Life &#38; Everything Else</description>
	<lastBuildDate>Tue, 27 Jul 2010 11:30:35 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Leonardo Borges</title>
		<link>http://ryanbigg.com/2008/03/administration-namespacing/comment-page-1/#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>&lt;p&gt;Nice tutorial! Very useful!&lt;/p&gt;

&lt;p&gt;Tks&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Nice tutorial! Very useful!</p>

<p>Tks</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Fabio</title>
		<link>http://ryanbigg.com/2008/03/administration-namespacing/comment-page-1/#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>&lt;p&gt;Sorry, I have done the changes manually and was missing things (the admin directory).
Thanks for the great tutorial!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Sorry, I have done the changes manually and was missing things (the admin directory).
Thanks for the great tutorial!</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Radar</title>
		<link>http://ryanbigg.com/2008/03/administration-namespacing/comment-page-1/#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>&lt;p&gt;Hey fabio, are you using the Rails in-built testing? Sure your controller is called CitiesController and is namespaced under admin?&lt;/p&gt;
</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://ryanbigg.com/2008/03/administration-namespacing/comment-page-1/#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>&lt;p&gt;Hello, thanks for the post!
But how do I refactor my tests? I renamed them to Admin::CitiesControllerTest, and now I get this:&lt;/p&gt;

&lt;p&gt;ActionController::NonInferrableControllerError: Unable to determine the controller to test from Admin::CitiesControllerTest. You&#039;ll need to specify it using &#039;tests YourController&#039; in your test case definition. This could mean that Admin::CitiesController does not exist or it contains syntax errors&lt;/p&gt;

&lt;p&gt;Do I really need to specify my controller to be tested?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hello, thanks for the post!
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://ryanbigg.com/2008/03/administration-namespacing/comment-page-1/#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>&lt;p&gt;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.&lt;/p&gt;
</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://ryanbigg.com/2008/03/administration-namespacing/comment-page-1/#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>&lt;p&gt;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!&lt;/p&gt;

&lt;p&gt;To submit to the admin form you need to specify in the form_for that it&#039;s namespaced:&lt;/p&gt;

&lt;p&gt;&lt;span class=&#039;term&#039;&gt;form_for [:admin, @product] do &#124;@f&#124;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;For example.&lt;/p&gt;
</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://ryanbigg.com/2008/03/administration-namespacing/comment-page-1/#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>&lt;p&gt;Sorry, the code got removed.  The form part looks like this:
form&lt;em&gt;for(@admin&lt;/em&gt;product) do &#124;f&#124;
And then I render a partial.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Sorry, the code got removed.  The form part looks like this:
form<em>for(@admin</em>product) do |f|
And then I render a partial.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: oliver</title>
		<link>http://ryanbigg.com/2008/03/administration-namespacing/comment-page-1/#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>&lt;p&gt;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...)&lt;/p&gt;

&lt;p&gt;&quot;shared/product&lt;em&gt;form&quot;, :locals =&gt; {:f =&gt; f, :label&lt;/em&gt;text =&gt; &quot;Update&quot;} %&gt;&lt;/p&gt;

&lt;p&gt;Since it&#039;s using the form for and the actual object it submits to the normal product controller. I&#039;ve tried a few things, but I can&#039;t figure out how to make it submit to the admin/product_controller.  Any help would be appreciated. Thanks.&lt;/p&gt;
</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<em>form&#8221;, :locals =&gt; {:f =&gt; f, :label</em>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>
