Class: Helpers::Forms::Form
- Inherits:
-
Tag
- Object
- SelfCloseTag
- Tag
- Helpers::Forms::Form
- Defined in:
- lib/helpers/forms.rb
Overview
Form.new(“/posts/create”) do |form|
form.text_field "post[title]"
form.text_area "post[body]"
form.submit "Create"
end
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Tag
Attributes inherited from SelfCloseTag
Instance Method Summary collapse
-
#initialize ⇒ Form
constructor
A new instance of Form.
Methods inherited from Tag
#each, #self_closing_tag, #tag, #to_s
Methods inherited from SelfCloseTag
#[], #[]=, #data, #inspect, #to_s
Constructor Details
#initialize ⇒ Form
Returns a new instance of Form.
11 12 13 |
# File 'lib/helpers/forms.rb', line 11 def initialize super(:form, Array.new, action) end |