Method: Erector::HTMLWidget#to_html
- Defined in:
- lib/erector/html_widget.rb
#to_html(options = {}) ⇒ Object
alias for AbstractWidget#render
198 199 200 201 |
# File 'lib/erector/html_widget.rb', line 198 def to_html( = {}) raise "Erector::Widget#to_html takes an options hash, not a symbol. Try calling \"to_html(:content_method_name=> :#{options})\"" if .is_a? Symbol _render().to_s end |