Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Allow easier setting of a custom form class.

  • Loading branch information...
commit 471f7d0623a2e8bcad28b3052d0141c4382b75e0 1 parent c258598
@tylerhunt authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/formulate/form_helper.rb
View
1  lib/formulate/form_helper.rb
@@ -6,6 +6,7 @@ def form_for(record, options={}, &proc)
options[:html] ||= {}
apply_form_for_options!(record, options)
options[:html][:class] << ' formulate'
+ options[:html][:class] << " #{options[:class]}" if options[:class]
original_field_error_proc = ::ActionView::Base.field_error_proc
::ActionView::Base.field_error_proc = FIELD_ERROR_PROC
Please sign in to comment.
Something went wrong with that request. Please try again.