Public Instance methods
form(obj=nil, attr={}, opts={}, &block)
[show source]
# File lib/forme/template.rb 59 def form(obj=nil, attr={}, opts={}, &block) 60 if obj.is_a?(Hash) 61 opts = attr.dup 62 attr = obj 63 obj = opts.delete(:obj) 64 else 65 opts = opts.dup 66 end 67 68 _forme_form_options(obj, attr, opts) 69 _forme_form(obj, attr, opts, &block) 70 end