<?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: Rails 2.1 + Theme Plugin</title>
	<atom:link href="http://terrbear.org/?feed=rss2&#038;p=30" rel="self" type="application/rss+xml" />
	<link>http://terrbear.org/?p=30</link>
	<description>ruby! rails! kids! oh my! ... and other fun from terry heath</description>
	<lastBuildDate>Tue, 31 Aug 2010 17:32:13 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Kirk Bushell</title>
		<link>http://terrbear.org/?p=30&#038;cpage=1#comment-369</link>
		<dc:creator>Kirk Bushell</dc:creator>
		<pubDate>Tue, 03 Mar 2009 00:10:08 +0000</pubDate>
		<guid isPermaLink="false">http://terrbear.org/?p=30#comment-369</guid>
		<description>I have tried so many versions of this, and I cannot seem to get it to work, specifically, I&#039;m at the exact same problem I had when trying to do this myself - layouts do not seem to get loaded. Anyone having this issue and how the hell do I get around it? I&#039;ve moved all my view files into themes/default. I&#039;m currently using Rails 2.1.0.</description>
		<content:encoded><![CDATA[<p>I have tried so many versions of this, and I cannot seem to get it to work, specifically, I&#8217;m at the exact same problem I had when trying to do this myself &#8211; layouts do not seem to get loaded. Anyone having this issue and how the hell do I get around it? I&#8217;ve moved all my view files into themes/default. I&#8217;m currently using Rails 2.1.0.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alan Harper</title>
		<link>http://terrbear.org/?p=30&#038;cpage=1#comment-156</link>
		<dc:creator>Alan Harper</dc:creator>
		<pubDate>Tue, 26 Aug 2008 01:39:48 +0000</pubDate>
		<guid isPermaLink="false">http://terrbear.org/?p=30#comment-156</guid>
		<description>I&#039;ve collected together the bits and pieces of patches, and uploaded to github: http://github.com/aussiegeek/theme_support</description>
		<content:encoded><![CDATA[<p>I&#8217;ve collected together the bits and pieces of patches, and uploaded to github: <a href="http://github.com/aussiegeek/theme_support" rel="nofollow">http://github.com/aussiegeek/theme_support</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: terry</title>
		<link>http://terrbear.org/?p=30&#038;cpage=1#comment-80</link>
		<dc:creator>terry</dc:creator>
		<pubDate>Sun, 27 Jul 2008 14:03:23 +0000</pubDate>
		<guid isPermaLink="false">http://terrbear.org/?p=30#comment-80</guid>
		<description>Do those use different helpers to find the templates? 

If you try to do it from the console, can you trace it to see where it&#039;s looking?</description>
		<content:encoded><![CDATA[<p>Do those use different helpers to find the templates? </p>
<p>If you try to do it from the console, can you trace it to see where it&#8217;s looking?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: joost</title>
		<link>http://terrbear.org/?p=30&#038;cpage=1#comment-79</link>
		<dc:creator>joost</dc:creator>
		<pubDate>Sun, 27 Jul 2008 14:01:18 +0000</pubDate>
		<guid isPermaLink="false">http://terrbear.org/?p=30#comment-79</guid>
		<description>I have the following problem (using Theme Plugin + Globalize):
It doesn&#039;t seem to work when rendering inside blocks, like:
render :page do RJS stuff!
Same for yield magic:
content_for :something do
   ...
end

Any ideas?</description>
		<content:encoded><![CDATA[<p>I have the following problem (using Theme Plugin + Globalize):<br />
It doesn&#8217;t seem to work when rendering inside blocks, like:<br />
render :page do RJS stuff!<br />
Same for yield magic:<br />
content_for :something do<br />
   &#8230;<br />
end</p>
<p>Any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tobiwankenobi</title>
		<link>http://terrbear.org/?p=30&#038;cpage=1#comment-64</link>
		<dc:creator>tobiwankenobi</dc:creator>
		<pubDate>Tue, 08 Jul 2008 15:48:47 +0000</pubDate>
		<guid isPermaLink="false">http://terrbear.org/?p=30#comment-64</guid>
		<description>Hi!

I still have some problems with the Theme-Plugin. Or maybe I just don&#039;t understand right.

After changing to the theme_plugin I deleted my public/images, public/javascripts directories and moved the contents into the /themes/default/-Folders. 

But now it seems that these files aren&#039;t used. When I use the command &quot;theme_javascript_include_tag &#039;default&#039;, &#039;prototype&quot; the error is:
&quot;Cannot read file /themes/prototype/javascript/&quot;
thats surely wrong, because prototype is the library to load?

Also, do I now have to use theme_image_tag instead image_tag? Seems so, because the theme_plugin otherwise searches in public/images.</description>
		<content:encoded><![CDATA[<p>Hi!</p>
<p>I still have some problems with the Theme-Plugin. Or maybe I just don&#8217;t understand right.</p>
<p>After changing to the theme_plugin I deleted my public/images, public/javascripts directories and moved the contents into the /themes/default/-Folders. </p>
<p>But now it seems that these files aren&#8217;t used. When I use the command &#8220;theme_javascript_include_tag &#8216;default&#8217;, &#8216;prototype&#8221; the error is:<br />
&#8220;Cannot read file /themes/prototype/javascript/&#8221;<br />
thats surely wrong, because prototype is the library to load?</p>
<p>Also, do I now have to use theme_image_tag instead image_tag? Seems so, because the theme_plugin otherwise searches in public/images.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steffen</title>
		<link>http://terrbear.org/?p=30&#038;cpage=1#comment-63</link>
		<dc:creator>Steffen</dc:creator>
		<pubDate>Tue, 08 Jul 2008 14:09:40 +0000</pubDate>
		<guid isPermaLink="false">http://terrbear.org/?p=30#comment-63</guid>
		<description>Hmm... even the last one didn&#039;t work if I was rendering partials directly from controller.  The reason seems to be that all this only affects the TemplateFinder, if there is a render command inside a template.  Else, the render method in ActionController::Base is used, which is uneffected by the theme_support patches.

An alternative solution: use ActionController::prepend_view_path directly from a before_filter.  That helps in my case, and makes all patches to ActionView::Base unnecessary.</description>
		<content:encoded><![CDATA[<p>Hmm&#8230; even the last one didn&#8217;t work if I was rendering partials directly from controller.  The reason seems to be that all this only affects the TemplateFinder, if there is a render command inside a template.  Else, the render method in ActionController::Base is used, which is uneffected by the theme_support patches.</p>
<p>An alternative solution: use ActionController::prepend_view_path directly from a before_filter.  That helps in my case, and makes all patches to ActionView::Base unnecessary.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin Ansfield</title>
		<link>http://terrbear.org/?p=30&#038;cpage=1#comment-62</link>
		<dc:creator>Kevin Ansfield</dc:creator>
		<pubDate>Tue, 08 Jul 2008 09:43:09 +0000</pubDate>
		<guid isPermaLink="false">http://terrbear.org/?p=30#comment-62</guid>
		<description>Oops, my bad. Looks like I was attempting this against rails edge as my git submodule wasn&#039;t checked out on the right tag.

Have now got it working fine with Rails 2.1.0 but edge seems to have already changed a fair bit with regards to templates.</description>
		<content:encoded><![CDATA[<p>Oops, my bad. Looks like I was attempting this against rails edge as my git submodule wasn&#8217;t checked out on the right tag.</p>
<p>Have now got it working fine with Rails 2.1.0 but edge seems to have already changed a fair bit with regards to templates.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin Ansfield</title>
		<link>http://terrbear.org/?p=30&#038;cpage=1#comment-61</link>
		<dc:creator>Kevin Ansfield</dc:creator>
		<pubDate>Mon, 07 Jul 2008 17:06:35 +0000</pubDate>
		<guid isPermaLink="false">http://terrbear.org/?p=30#comment-61</guid>
		<description>I&#039;ve just tried this patch, but I keep running into an error with @finder:

NoMethodError (You have a nil object when you didn&#039;t expect it!
The error occurred while evaluating nil.prepend_view_path):
    /vendor/plugins/theme_support/lib/patches/actionview_ex.rb:16:in `render_file&#039;

Should the @finder variable be set elsewhere?

Thanks.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve just tried this patch, but I keep running into an error with @finder:</p>
<p>NoMethodError (You have a nil object when you didn&#8217;t expect it!<br />
The error occurred while evaluating nil.prepend_view_path):<br />
    /vendor/plugins/theme_support/lib/patches/actionview_ex.rb:16:in `render_file&#8217;</p>
<p>Should the @finder variable be set elsewhere?</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: terry</title>
		<link>http://terrbear.org/?p=30&#038;cpage=1#comment-56</link>
		<dc:creator>terry</dc:creator>
		<pubDate>Tue, 24 Jun 2008 14:40:09 +0000</pubDate>
		<guid isPermaLink="false">http://terrbear.org/?p=30#comment-56</guid>
		<description>@Nate
Nice catch, sir. That clearly isn&#039;t necessary (since it works just fine without it, and reportedly better), so I&#039;m going to update the post (and my local code!) to reflect it.

Thanks!</description>
		<content:encoded><![CDATA[<p>@Nate<br />
Nice catch, sir. That clearly isn&#8217;t necessary (since it works just fine without it, and reportedly better), so I&#8217;m going to update the post (and my local code!) to reflect it.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nate</title>
		<link>http://terrbear.org/?p=30&#038;cpage=1#comment-53</link>
		<dc:creator>Nate</dc:creator>
		<pubDate>Tue, 24 Jun 2008 11:06:41 +0000</pubDate>
		<guid isPermaLink="false">http://terrbear.org/?p=30#comment-53</guid>
		<description>I&#039;m curious why we need to do the finder.pick_template?  If you stick the paths to the search path, isn&#039;t Rails supposed to be able to find the template on its own now these days with 2.1?  So I changed the render code above to be: 

http://www.pastie.org/221034

So all it&#039;s essentially doing is prepending the new view paths out of the themes directory and letting rails find them on its own by calling the old aliased render, and it seems to do the job.  And it also doesn&#039;t screw with @first_render apparently, which makes assert_template work again as expected.</description>
		<content:encoded><![CDATA[<p>I&#8217;m curious why we need to do the finder.pick_template?  If you stick the paths to the search path, isn&#8217;t Rails supposed to be able to find the template on its own now these days with 2.1?  So I changed the render code above to be: </p>
<p><a href="http://www.pastie.org/221034" rel="nofollow">http://www.pastie.org/221034</a></p>
<p>So all it&#8217;s essentially doing is prepending the new view paths out of the themes directory and letting rails find them on its own by calling the old aliased render, and it seems to do the job.  And it also doesn&#8217;t screw with @first_render apparently, which makes assert_template work again as expected.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->