class Object

Constants

CHARACTERS

Public Instance Methods

render_widget(widget_class, assigns=nil, options={}) click to toggle source
# File lib/erector/rails2/extensions/action_controller.rb, line 4
def render_widget(widget_class, assigns=nil, options={})
  render options.merge(:text => Erector::Rails.render(widget_class, response.template, assigns, options))
end
render_with_erector_widget(*options, &block) click to toggle source
# File lib/erector/rails2/extensions/action_controller.rb, line 8
def render_with_erector_widget(*options, &block)
  if options.first.is_a?(Hash) && widget = options.first.delete(:widget)
    render_widget widget, @assigns, options.first
  else
    render_without_erector_widget *options, &block
  end
end