Displaying 1 result from an estimated 1 matches for "convert_html_to_xyz".
2010 Jul 04
2
Rendering a different format in the implementation of a renderer
...pContext 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/michael/
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To post to th...