Method: BaseHelper#widget

Defined in:
app/helpers/base_helper.rb

#widget(html_options = {}, &block) ⇒ Object



52
53
54
55
56
# File 'app/helpers/base_helper.rb', line 52

def widget(html_options = {}, &block)
  @widgets ||= ''
  @widgets << render(:partial => 'shared/widget', :locals => {:body => capture(&block), :html_options => html_options})
  return ''
end