<?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: Change Rails&#8217; layout via controller</title>
	<atom:link href="http://jonathanng.com/ruby-on-rails/change-rails-layout-via-controller/feed/" rel="self" type="application/rss+xml" />
	<link>http://jonathanng.com/ruby-on-rails/change-rails-layout-via-controller/</link>
	<description>code + culture</description>
	<lastBuildDate>Fri, 21 Jan 2011 19:11:10 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Mikel Mooney</title>
		<link>http://jonathanng.com/ruby-on-rails/change-rails-layout-via-controller/comment-page-1/#comment-845</link>
		<dc:creator>Mikel Mooney</dc:creator>
		<pubDate>Mon, 18 Aug 2008 16:31:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.jonathansng.com/ruby-on-rails/change-rails-layout-via-controller/#comment-845</guid>
		<description>hoosh brachering trivalvular cocytean sweetberry laconica swampland raptorious
&lt;a href=&quot;http://www.arcstyler.com/&quot; rel=&quot;nofollow&quot;&gt;ArcStyler&lt;/a&gt;
 http://www.oliversnurseries.co.uk 
&lt;a href=&quot;http://www.beerwah-fruitmarket.com/&quot; rel=&quot;nofollow&quot;&gt;Beerwah Fruit Market&lt;/a&gt;
 http://www.fastscaffolds.com/ 
&lt;a href=&quot;http://www.backusmn.com/backus_volunteer_fire_department.htm&quot; rel=&quot;nofollow&quot;&gt;Backus Volunteer Fire Department&lt;/a&gt;
 http://www.wylie.esc14.net/Campuses/INT%20Files/WIS.htm 
&lt;a href=&quot;http://www.caloundrarealestate.com.au/&quot; rel=&quot;nofollow&quot;&gt;Caloundra Real Estate&lt;/a&gt;
 http://members.lycos.co.uk/moviemayhem/</description>
		<content:encoded><![CDATA[<p>hoosh brachering trivalvular cocytean sweetberry laconica swampland raptorious<br />
<a href="http://www.arcstyler.com/" rel="nofollow">ArcStyler</a><br />
 <a href="http://www.oliversnurseries.co.uk" rel="nofollow">http://www.oliversnurseries.co.uk</a><br />
<a href="http://www.beerwah-fruitmarket.com/" rel="nofollow">Beerwah Fruit Market</a><br />
 <a href="http://www.fastscaffolds.com/" rel="nofollow">http://www.fastscaffolds.com/</a><br />
<a href="http://www.backusmn.com/backus_volunteer_fire_department.htm" rel="nofollow">Backus Volunteer Fire Department</a><br />
 <a href="http://www.wylie.esc14.net/Campuses/INT%20Files/WIS.htm" rel="nofollow">http://www.wylie.esc14.net/Campuses/INT%20Files/WIS.htm</a><br />
<a href="http://www.caloundrarealestate.com.au/" rel="nofollow">Caloundra Real Estate</a><br />
 <a href="http://members.lycos.co.uk/moviemayhem/" rel="nofollow">http://members.lycos.co.uk/moviemayhem/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://jonathanng.com/ruby-on-rails/change-rails-layout-via-controller/comment-page-1/#comment-96</link>
		<dc:creator>John</dc:creator>
		<pubDate>Sun, 23 Mar 2008 12:50:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.jonathansng.com/ruby-on-rails/change-rails-layout-via-controller/#comment-96</guid>
		<description>Will that work for RJS templates? i.e. format.js?</description>
		<content:encoded><![CDATA[<p>Will that work for RJS templates? i.e. format.js?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://jonathanng.com/ruby-on-rails/change-rails-layout-via-controller/comment-page-1/#comment-844</link>
		<dc:creator>John</dc:creator>
		<pubDate>Sun, 23 Mar 2008 12:50:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.jonathansng.com/ruby-on-rails/change-rails-layout-via-controller/#comment-844</guid>
		<description>Will that work for RJS templates? i.e. format.js?</description>
		<content:encoded><![CDATA[<p>Will that work for RJS templates? i.e. format.js?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan</title>
		<link>http://jonathanng.com/ruby-on-rails/change-rails-layout-via-controller/comment-page-1/#comment-65</link>
		<dc:creator>Jonathan</dc:creator>
		<pubDate>Tue, 04 Mar 2008 21:15:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.jonathansng.com/ruby-on-rails/change-rails-layout-via-controller/#comment-65</guid>
		<description>I had the same problem trying to figure that out :) Glad I could help!</description>
		<content:encoded><![CDATA[<p>I had the same problem trying to figure that out <img src='http://jonathanng.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Glad I could help!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan</title>
		<link>http://jonathanng.com/ruby-on-rails/change-rails-layout-via-controller/comment-page-1/#comment-842</link>
		<dc:creator>Jonathan</dc:creator>
		<pubDate>Tue, 04 Mar 2008 21:15:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.jonathansng.com/ruby-on-rails/change-rails-layout-via-controller/#comment-842</guid>
		<description>I had the same problem trying to figure that out :) Glad I could help!</description>
		<content:encoded><![CDATA[<p>I had the same problem trying to figure that out <img src='http://jonathanng.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Glad I could help!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://jonathanng.com/ruby-on-rails/change-rails-layout-via-controller/comment-page-1/#comment-64</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Tue, 04 Mar 2008 12:22:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.jonathansng.com/ruby-on-rails/change-rails-layout-via-controller/#comment-64</guid>
		<description>Sweet - thanks!
I had tried what you have in line #10 above, but it had *not* occurred to me to put what you have in line #2. Did both as you suggest and the app doesn&#039;t complain now. Thanks so much for stocking with this for me!</description>
		<content:encoded><![CDATA[<p>Sweet &#8211; thanks!<br />
I had tried what you have in line #10 above, but it had *not* occurred to me to put what you have in line #2. Did both as you suggest and the app doesn&#8217;t complain now. Thanks so much for stocking with this for me!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://jonathanng.com/ruby-on-rails/change-rails-layout-via-controller/comment-page-1/#comment-838</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Tue, 04 Mar 2008 12:22:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.jonathansng.com/ruby-on-rails/change-rails-layout-via-controller/#comment-838</guid>
		<description>Sweet - thanks!
I had tried what you have in line #10 above, but it had *not* occurred to me to put what you have in line #2. Did both as you suggest and the app doesn&#039;t complain now. Thanks so much for stocking with this for me!</description>
		<content:encoded><![CDATA[<p>Sweet &#8211; thanks!<br />
I had tried what you have in line #10 above, but it had *not* occurred to me to put what you have in line #2. Did both as you suggest and the app doesn&#8217;t complain now. Thanks so much for stocking with this for me!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan</title>
		<link>http://jonathanng.com/ruby-on-rails/change-rails-layout-via-controller/comment-page-1/#comment-62</link>
		<dc:creator>Jonathan</dc:creator>
		<pubDate>Tue, 04 Mar 2008 00:59:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.jonathansng.com/ruby-on-rails/change-rails-layout-via-controller/#comment-62</guid>
		<description>Steve, this should make sense, if not, let me know.

&lt;pre lang=&quot;ruby&quot; line=&quot;1&quot;&gt;
class DashboardController &lt; ApplicationController
  layout &#039;primary&#039;

  def index
    @everything = Stuff.find(:all)
  end
  
  def show
    @something = Stuff.find(params[:id])
    render :layout =&gt; &quot;secondary&quot;
  end
  
end

&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Steve, this should make sense, if not, let me know.</p>
<pre lang="ruby" line="1">
class DashboardController < ApplicationController
  layout 'primary'

  def index
    @everything = Stuff.find(:all)
  end

  def show
    @something = Stuff.find(params[:id])
    render :layout => "secondary"
  end

end
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan</title>
		<link>http://jonathanng.com/ruby-on-rails/change-rails-layout-via-controller/comment-page-1/#comment-839</link>
		<dc:creator>Jonathan</dc:creator>
		<pubDate>Tue, 04 Mar 2008 00:59:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.jonathansng.com/ruby-on-rails/change-rails-layout-via-controller/#comment-839</guid>
		<description>Steve, this should make sense, if not, let me know.

&lt;pre lang=&quot;ruby&quot; line=&quot;1&quot;&gt;
class DashboardController  &quot;secondary&quot;
  end
  
end

&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Steve, this should make sense, if not, let me know.</p>
<pre lang="ruby" line="1">
class DashboardController  "secondary"
  end

end
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://jonathanng.com/ruby-on-rails/change-rails-layout-via-controller/comment-page-1/#comment-59</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Sat, 01 Mar 2008 02:57:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.jonathansng.com/ruby-on-rails/change-rails-layout-via-controller/#comment-59</guid>
		<description>Jonathan - thanks! I appreciate your help and interest. I&#039;m sorry, I don&#039;t follow which &quot;method&quot; you are suggesting I place that directive in. Assuming we are talking about the controller, I&#039;ve got the basic 2,0 RESTful controller with at present the basic seven methods. I want all except &quot;show&quot; to use a common layout, but I want &quot;show&quot; to use a different one. When I put anything that begins with &quot;render&quot; inside the show method I get an error informing me that too many redirects have been requested.</description>
		<content:encoded><![CDATA[<p>Jonathan &#8211; thanks! I appreciate your help and interest. I&#8217;m sorry, I don&#8217;t follow which &#8220;method&#8221; you are suggesting I place that directive in. Assuming we are talking about the controller, I&#8217;ve got the basic 2,0 RESTful controller with at present the basic seven methods. I want all except &#8220;show&#8221; to use a common layout, but I want &#8220;show&#8221; to use a different one. When I put anything that begins with &#8220;render&#8221; inside the show method I get an error informing me that too many redirects have been requested.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

