todo: make more like github.com/justinfrench/formtastic
# File lib/erector/widgets/form.rb, line 6 def content form :method => form_method, :action => @action do unless rest_method == form_method input :type => "hidden", :name => "_method", :value => rest_method end super end end
# File lib/erector/widgets/form.rb, line 19 def form_method if method == "get" "get" else "post" end end
# File lib/erector/widgets/form.rb, line 15 def method @method.to_s.downcase end
# File lib/erector/widgets/form.rb, line 27 def rest_method method end