class Dill::Form
Public Instance Methods
submit_with(attributes)
click to toggle source
Submit form with attributes
.
@param attributes [Hash] the form fields and their values
@return the current widget
# File lib/dill/widgets/form.rb, line 12 def submit_with(attributes) set attributes submit end
to_table()
click to toggle source
# File lib/dill/widgets/form.rb, line 17 def to_table info = self. class. field_names. each_with_object({}) { |e, a| a[e.to_s] = widget(e).to_cell } [info] end