Module: ActionView::Helpers::RestBoxHelper::InstanceMethods
- Defined in:
- lib/restbox_view_helper.rb
Instance Method Summary collapse
Instance Method Details
#restbox(options = {}) ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/restbox_view_helper.rb', line 12 def restbox( = {}) content = escape_javascript([:content].to_s || '') container_class = escape_javascript([:container_class].to_s || '') params = "content: \"#{content}\"" params += ", container_class: \"#{container_class}\"" unless container_class.empty? "jQuery.restbox({#{params}});" end |