lib/happy-helpers/helpers/forms.rb in happy-helpers-0.1.0.pre14 vs lib/happy-helpers/helpers/forms.rb in happy-helpers-0.1.0.pre15

- old
+ new

@@ -74,14 +74,16 @@ options = { :action => resource.new_record? ? "/#{resource.class.to_s.tableize}" : "/#{resource.class.to_s.tableize}/#{resource.id}", :method => 'post' }.merge(options) - concat_output html_tag(:form, options) do + form_html = html_tag(:form, options) do capture_template_block do yield FormBuilder.new(self, resource, options) end end + + concat_output form_html end class FormBuilder attr_reader :helpers, :resource, :form_options