Class: Helpers::Forms::FormFor

Inherits:
Form show all
Defined in:
lib/helpers/forms.rb

Overview

Form.new(@post, “/posts/create”) do |form|

form.text_field :title
form.text_area :body
form.submit "Create"

end

Instance Attribute Summary

Attributes inherited from Tag

#content, #indentation

Attributes inherited from SelfCloseTag

#attrs, #name

Instance Method Summary collapse

Methods inherited from Tag

#each, #self_closing_tag, #tag, #to_s

Methods inherited from SelfCloseTag

#[], #[]=, #data, #inspect, #to_s

Constructor Details

#initialize(object, action) ⇒ FormFor

Returns a new instance of FormFor.



22
23
# File 'lib/helpers/forms.rb', line 22

def initialize(object, action)
end