<?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: Render Options in Rails 3</title>
	<atom:link href="http://www.engineyard.com/blog/2010/render-options-in-rails-3/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.engineyard.com/blog/2010/render-options-in-rails-3/</link>
	<description></description>
	<lastBuildDate>Wed, 08 Feb 2012 05:24:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Ruby on Rails resources &#124; Roshan Book</title>
		<link>http://www.engineyard.com/blog/2010/render-options-in-rails-3/comment-page-1/#comment-59219</link>
		<dc:creator>Ruby on Rails resources &#124; Roshan Book</dc:creator>
		<pubDate>Wed, 23 Nov 2011 19:15:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.engineyard.com/blog/?p=3201#comment-59219</guid>
		<description>[...] Render Options in Rails 3 – Yehuda goes through the rendering options available in Rails 3. [...]</description>
		<content:encoded><![CDATA[<p>[...] Render Options in Rails 3 – Yehuda goes through the rendering options available in Rails 3. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: glebm</title>
		<link>http://www.engineyard.com/blog/2010/render-options-in-rails-3/comment-page-1/#comment-58524</link>
		<dc:creator>glebm</dc:creator>
		<pubDate>Sun, 29 May 2011 21:55:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.engineyard.com/blog/?p=3201#comment-58524</guid>
		<description>https://github.com/glebm/to_spreadsheet</description>
		<content:encoded><![CDATA[<p><a href="https://github.com/glebm/to_spreadsheet" rel="nofollow">https://github.com/glebm/to_spreadsheet</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: glebm</title>
		<link>http://www.engineyard.com/blog/2010/render-options-in-rails-3/comment-page-1/#comment-58523</link>
		<dc:creator>glebm</dc:creator>
		<pubDate>Sun, 29 May 2011 20:51:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.engineyard.com/blog/?p=3201#comment-58523</guid>
		<description>I&#039;ve written a gem for this: http://glebm.blogspot.com/2011/05/annoucing-tospreadsheet-gem.htmlIt renders .xls and .xlsx, not .pdf but take a look at the source -- it&#039;s a much improved and clean version of a custom renderer based on this post</description>
		<content:encoded><![CDATA[<p>I&#8217;ve written a gem for this: http://glebm.blogspot.com/2011/05/annoucing-tospreadsheet-gem.htmlIt renders .xls and .xlsx, not .pdf but take a look at the source &#8212; it&#8217;s a much improved and clean version of a custom renderer based on this post</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gleb Mazovetskiy</title>
		<link>http://www.engineyard.com/blog/2010/render-options-in-rails-3/comment-page-1/#comment-57859</link>
		<dc:creator>Gleb Mazovetskiy</dc:creator>
		<pubDate>Mon, 14 Mar 2011 10:08:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.engineyard.com/blog/?p=3201#comment-57859</guid>
		<description>I found out that in Rails &gt; 3.0 you have to add the following lines for &lt;code&gt;format.pdf&lt;/code&gt; to work:

&lt;pre&gt;class ActionController::Responder
  def to_pdf
    controller.render :pdf =&gt; controller.action_name
  end
end
&lt;/pre&gt;

You can read more on this in my blog post (I show how to integrate xlsx rendering): http://glebm.blogspot.com/2011/03/rendering-xslx-from-rails-3-without.html

@ Yehuda Katz: please update your blog post</description>
		<content:encoded><![CDATA[<p>I found out that in Rails &gt; 3.0 you have to add the following lines for <code>format.pdf</code> to work:</p>
<pre>class ActionController::Responder
  def to_pdf
    controller.render :pdf =&gt; controller.action_name
  end
end
</pre>
<p>You can read more on this in my blog post (I show how to integrate xlsx rendering): <a href="http://glebm.blogspot.com/2011/03/rendering-xslx-from-rails-3-without.html" rel="nofollow">http://glebm.blogspot.com/2011/03/rendering-xslx-from-rails-3-without.html</a></p>
<p>@ Yehuda Katz: please update your blog post</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gleb Mazovetskiy</title>
		<link>http://www.engineyard.com/blog/2010/render-options-in-rails-3/comment-page-1/#comment-57854</link>
		<dc:creator>Gleb Mazovetskiy</dc:creator>
		<pubDate>Sat, 12 Mar 2011 18:28:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.engineyard.com/blog/?p=3201#comment-57854</guid>
		<description>config/initializers/my_renderer.rb</description>
		<content:encoded><![CDATA[<p>config/initializers/my_renderer.rb</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gleb Mazovetskiy</title>
		<link>http://www.engineyard.com/blog/2010/render-options-in-rails-3/comment-page-1/#comment-57853</link>
		<dc:creator>Gleb Mazovetskiy</dc:creator>
		<pubDate>Sat, 12 Mar 2011 18:27:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.engineyard.com/blog/?p=3201#comment-57853</guid>
		<description>Can&#039;t seem to make it work (Rails 3.0.5). I created a test case and SO question: http://stackoverflow.com/questions/5284443/rails-custom-renderer</description>
		<content:encoded><![CDATA[<p>Can&#8217;t seem to make it work (Rails 3.0.5). I created a test case and SO question: <a href="http://stackoverflow.com/questions/5284443/rails-custom-renderer" rel="nofollow">http://stackoverflow.com/questions/5284443/rails-custom-renderer</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://www.engineyard.com/blog/2010/render-options-in-rails-3/comment-page-1/#comment-46817</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Mon, 11 Oct 2010 03:52:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.engineyard.com/blog/?p=3201#comment-46817</guid>
		<description>where is the best place to plop this code? will it work if I put it in ApplicationController? it would certainly ensure that ActionController is loaded... :) </description>
		<content:encoded><![CDATA[<p>where is the best place to plop this code? will it work if I put it in ApplicationController? it would certainly ensure that ActionController is loaded&#8230; :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jakob S</title>
		<link>http://www.engineyard.com/blog/2010/render-options-in-rails-3/comment-page-1/#comment-42565</link>
		<dc:creator>Jakob S</dc:creator>
		<pubDate>Sun, 23 May 2010 16:02:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.engineyard.com/blog/?p=3201#comment-42565</guid>
		<description>Dependent on when you try to use the method, ActionController might not be fully loaded. You should be able to require &#039;action_controller/base&#039; - or perhaps require &#039;action_controller/metal/renderers&#039; if you want to be more specific. 
 
Alternatively, you can use ActionController::Renderers.add, which is effectively the same method, and the extra module looks like it triggers some of Rails&#039; autoloading magic. </description>
		<content:encoded><![CDATA[<p>Dependent on when you try to use the method, ActionController might not be fully loaded. You should be able to require &#039;action_controller/base&#039; &#8211; or perhaps require &#039;action_controller/metal/renderers&#039; if you want to be more specific.</p>
<p>Alternatively, you can use ActionController::Renderers.add, which is effectively the same method, and the extra module looks like it triggers some of Rails&#039; autoloading magic.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sebastian</title>
		<link>http://www.engineyard.com/blog/2010/render-options-in-rails-3/comment-page-1/#comment-42224</link>
		<dc:creator>Sebastian</dc:creator>
		<pubDate>Tue, 11 May 2010 23:58:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.engineyard.com/blog/?p=3201#comment-42224</guid>
		<description>Has the API for this since changed? Adding ActionController.add_renderer to an initializer throws an error: &quot;undefined method `add_renderer&#039; for ActionController:Module&quot; </description>
		<content:encoded><![CDATA[<p>Has the API for this since changed? Adding ActionController.add_renderer to an initializer throws an error: &quot;undefined method `add_renderer&#039; for ActionController:Module&quot;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rails 3.0 Beta: 36 Links and Resources To Get You Going &#171; Особое программирование</title>
		<link>http://www.engineyard.com/blog/2010/render-options-in-rails-3/comment-page-1/#comment-41033</link>
		<dc:creator>Rails 3.0 Beta: 36 Links and Resources To Get You Going &#171; Особое программирование</dc:creator>
		<pubDate>Thu, 11 Feb 2010 21:51:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.engineyard.com/blog/?p=3201#comment-41033</guid>
		<description>[...] Render Options in Rails 3 &#8211; Yehuda Katz looks at how Rails 3&#8217;s rendering pipeline works and demonstrates how to add a custom PDF renderer to it. [...]</description>
		<content:encoded><![CDATA[<p>[...] Render Options in Rails 3 &#8211; Yehuda Katz looks at how Rails 3&#8217;s rendering pipeline works and demonstrates how to add a custom PDF renderer to it. [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

