<?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: Calling Rails Render Partial in a Model or Background Task</title>
	<atom:link href="http://www.justinbritten.com/work/2008/10/rendering-rails-partials-in-a-model-or-background-task/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.justinbritten.com/work/2008/10/rendering-rails-partials-in-a-model-or-background-task/</link>
	<description>Ruby on Rails web application design, development and consulting</description>
	<lastBuildDate>Tue, 31 Aug 2010 21:37:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Felix</title>
		<link>http://www.justinbritten.com/work/2008/10/rendering-rails-partials-in-a-model-or-background-task/#comment-148</link>
		<dc:creator>Felix</dc:creator>
		<pubDate>Thu, 22 Jul 2010 03:29:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.justinbritten.com/work/?p=161#comment-148</guid>
		<description>I got the same &quot;undefined method `url_for’ for nil:NilClass&quot;.

Ttried to add &quot;include ActionView::Helpers::UrlHelper&quot;  and &quot;include ActionController::UrlWriter&quot; as Dave suggested but no luck(undefined method &#039;include&#039;), I changed &quot;include&quot; to &quot;require&quot; but rails complains &quot;can&#039;t convert Module into String&quot;.

Besides, I need also to use some functions defined in application_helper.rb in the model, how can I do that?

Thanks.</description>
		<content:encoded><![CDATA[<p>I got the same &#8220;undefined method `url_for’ for nil:NilClass&#8221;.</p>
<p>Ttried to add &#8220;include ActionView::Helpers::UrlHelper&#8221;  and &#8220;include ActionController::UrlWriter&#8221; as Dave suggested but no luck(undefined method &#8216;include&#8217;), I changed &#8220;include&#8221; to &#8220;require&#8221; but rails complains &#8220;can&#8217;t convert Module into String&#8221;.</p>
<p>Besides, I need also to use some functions defined in application_helper.rb in the model, how can I do that?</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: david g</title>
		<link>http://www.justinbritten.com/work/2008/10/rendering-rails-partials-in-a-model-or-background-task/#comment-147</link>
		<dc:creator>david g</dc:creator>
		<pubDate>Wed, 09 Jun 2010 04:28:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.justinbritten.com/work/?p=161#comment-147</guid>
		<description>FYI - I am running Rails 2.3.5</description>
		<content:encoded><![CDATA[<p>FYI &#8211; I am running Rails 2.3.5</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: david g</title>
		<link>http://www.justinbritten.com/work/2008/10/rendering-rails-partials-in-a-model-or-background-task/#comment-146</link>
		<dc:creator>david g</dc:creator>
		<pubDate>Wed, 09 Jun 2010 04:28:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.justinbritten.com/work/?p=161#comment-146</guid>
		<description>Did you ever figure this problem out? I am running into the same error (undefined method `url_for&#039; for nil:NilClass) when using link_to in my partial.

Thanks</description>
		<content:encoded><![CDATA[<p>Did you ever figure this problem out? I am running into the same error (undefined method `url_for&#8217; for nil:NilClass) when using link_to in my partial.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Lynam</title>
		<link>http://www.justinbritten.com/work/2008/10/rendering-rails-partials-in-a-model-or-background-task/#comment-145</link>
		<dc:creator>Dave Lynam</dc:creator>
		<pubDate>Wed, 16 Dec 2009 11:56:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.justinbritten.com/work/?p=161#comment-145</guid>
		<description>It looks as though if you add:
  	include ActionView::Helpers::UrlHelper
	include ActionController::UrlWriter
The nil / noMethodEroor gets resolved.</description>
		<content:encoded><![CDATA[<p>It looks as though if you add:<br />
  	include ActionView::Helpers::UrlHelper<br />
	include ActionController::UrlWriter<br />
The nil / noMethodEroor gets resolved.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ethilien :: Render Rails Templates Anywhere (even in a model)</title>
		<link>http://www.justinbritten.com/work/2008/10/rendering-rails-partials-in-a-model-or-background-task/#comment-144</link>
		<dc:creator>Ethilien :: Render Rails Templates Anywhere (even in a model)</dc:creator>
		<pubDate>Tue, 21 Jul 2009 05:05:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.justinbritten.com/work/?p=161#comment-144</guid>
		<description>[...] to Compulsivo for much of this [...]</description>
		<content:encoded><![CDATA[<p>[...] to Compulsivo for much of this [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thiyagarajan Veluchamy</title>
		<link>http://www.justinbritten.com/work/2008/10/rendering-rails-partials-in-a-model-or-background-task/#comment-143</link>
		<dc:creator>Thiyagarajan Veluchamy</dc:creator>
		<pubDate>Wed, 22 Apr 2009 11:20:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.justinbritten.com/work/?p=161#comment-143</guid>
		<description>you can use in views part,

 &quot;partialfolder/partialname&quot; %&gt;

Regards,

Thiyagarajan Veluchamy
Test Lead</description>
		<content:encoded><![CDATA[<p>you can use in views part,</p>
<p> &#8220;partialfolder/partialname&#8221; %&gt;</p>
<p>Regards,</p>
<p>Thiyagarajan Veluchamy<br />
Test Lead</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yzhanginca</title>
		<link>http://www.justinbritten.com/work/2008/10/rendering-rails-partials-in-a-model-or-background-task/#comment-142</link>
		<dc:creator>yzhanginca</dc:creator>
		<pubDate>Sat, 11 Apr 2009 07:14:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.justinbritten.com/work/?p=161#comment-142</guid>
		<description>I wanted to use similar technique to render :update. But it gave me an error:

   NoMethodError: You have a nil object when you didn&#039;t expect it!
   The error occurred while evaluating nil.with_output_buffer

Not sure if I need to include any modules.</description>
		<content:encoded><![CDATA[<p>I wanted to use similar technique to render :update. But it gave me an error:</p>
<p>   NoMethodError: You have a nil object when you didn&#8217;t expect it!<br />
   The error occurred while evaluating nil.with_output_buffer</p>
<p>Not sure if I need to include any modules.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: holin</title>
		<link>http://www.justinbritten.com/work/2008/10/rendering-rails-partials-in-a-model-or-background-task/#comment-141</link>
		<dc:creator>holin</dc:creator>
		<pubDate>Tue, 25 Nov 2008 06:29:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.justinbritten.com/work/?p=161#comment-141</guid>
		<description>thank u.</description>
		<content:encoded><![CDATA[<p>thank u.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joel</title>
		<link>http://www.justinbritten.com/work/2008/10/rendering-rails-partials-in-a-model-or-background-task/#comment-140</link>
		<dc:creator>Joel</dc:creator>
		<pubDate>Sat, 22 Nov 2008 23:49:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.justinbritten.com/work/?p=161#comment-140</guid>
		<description>I take it link_to/url_for would fit into the situation Joe Goggins mentions above?

I&#039;m trying to render a partial with some links to nested resources and I keep getting this error:

&lt;strong&gt;The error occurred while evaluating nil.url_for&lt;/strong&gt;

I tried out Joe&#039;s sample code as well, still no dice.  Anyone have any thoughts?</description>
		<content:encoded><![CDATA[<p>I take it link_to/url_for would fit into the situation Joe Goggins mentions above?</p>
<p>I&#8217;m trying to render a partial with some links to nested resources and I keep getting this error:</p>
<p><strong>The error occurred while evaluating nil.url_for</strong></p>
<p>I tried out Joe&#8217;s sample code as well, still no dice.  Anyone have any thoughts?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cobus</title>
		<link>http://www.justinbritten.com/work/2008/10/rendering-rails-partials-in-a-model-or-background-task/#comment-139</link>
		<dc:creator>Cobus</dc:creator>
		<pubDate>Wed, 19 Nov 2008 22:06:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.justinbritten.com/work/?p=161#comment-139</guid>
		<description>I thank you for this!!</description>
		<content:encoded><![CDATA[<p>I thank you for this!!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
