[Rails-core] Rendering a different format in the implementation of a renderer

2010-07-04 Thread Michael Schuerig
Yehuda has a nice article on implementing a custom renderer for PDF at http://www.engineyard.com/blog/2010/render-options-in-rails-3/ I've tried to follow the example and I'm not sure I see how to get it to work. If I understand things correctly, the format(s) usable in this render call

Re: [Rails-core] Rendering a different format in the implementation of a renderer

2010-07-04 Thread Yehuda Katz
You can do something like this in Rails 3: render :partial = foo.html if you're in an XML template et al. Yehuda Katz Architect | Engine Yard (ph) 718.877.1325 On Sun, Jul 4, 2010 at 7:07 AM, Michael Schuerig mich...@schuerig.dewrote: Yehuda has a nice article on implementing a custom