Displaying 2 results from an estimated 2 matches for "add_renderer".
2010 Jul 04
2
Rendering a different format in the implementation of a renderer
...39;'m trying to get
HTML rendered in order to convert it to PDF.
As I can see no other clean way, I wish ActionView::LookupContext had a
method #with_format(format) { ... } for overriding the format for the
duration of the block. Such a renderer could then look like this
ActionController.add_renderer(:xyz) do |template, options|
lookup_context.with_format(:html) do
html = render(template, options)
convert_html_to_xyz(html)
end
end
Or, even easier, :format could be an option to #render.
Michael
--
Michael Schuerig
mailto:michael@schuerig.de
http://www.schuerig.de/micha...
2010 Aug 03
3
Juggernaut Rails 3
Are there any plans to update the Juggernaut gem to be compatible with
Rails 3? It doesn''t seem to work as of now with Rails 3, unless I set up
the whole thing wrong. Also are there any good working alternatives for
a push server?
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.