Class: StandardFormBuilder
- Inherits:
-
AbstractFormBuilder
- Object
- AbstractFormBuilder
- StandardFormBuilder
- Defined in:
- lib/sinatra/markup_plugin/form_builder/standard_form_builder.rb
Instance Attribute Summary
Attributes inherited from AbstractFormBuilder
Instance Method Summary collapse
-
#image_submit_block(source, options = {}) ⇒ Object
image_submit_block(“submit.png”).
-
#submit_block(caption, options = {}) ⇒ Object
submit_block(“Update”).
Methods inherited from AbstractFormBuilder
#check_box, #error_messages, #file_field, #hidden_field, #image_submit, #initialize, #label, #password_field, #radio_button, #select, #submit, #text_area, #text_field
Constructor Details
This class inherits a constructor from AbstractFormBuilder
Instance Method Details
#image_submit_block(source, options = {}) ⇒ Object
image_submit_block(“submit.png”)
27 28 29 30 |
# File 'lib/sinatra/markup_plugin/form_builder/standard_form_builder.rb', line 27 def image_submit_block(source, ={}) submit_html = self.image_submit(source, ) @template.content_tag(:p, submit_html) end |
#submit_block(caption, options = {}) ⇒ Object
submit_block(“Update”)
21 22 23 24 |
# File 'lib/sinatra/markup_plugin/form_builder/standard_form_builder.rb', line 21 def submit_block(, ={}) submit_html = self.submit(, ) @template.content_tag(:p, submit_html) end |