Sha256: 24919d3dec189fc73dd27127aedcf0590c58da7cd14d63dd44adb17b994793a7
Contents?: true
Size: 626 Bytes
Versions: 6
Compression:
Stored size: 626 Bytes
Contents
module JqueryUiForm module Helpers module FormHelper def jquery_form_for(name, *args, &block) options = args.last.is_a?(Hash) ? args.pop : {} options[:builder] ||= JqueryUiForm::FormBuilder options[:html] ||= {} (options[:html][:class] ||= "") << " ui-form" form_for(name, *(args << options), &block) end def jquery_fields_for(name, *args, &block) options = args.last.is_a?(Hash) ? args.pop : {} options[:builder] ||= JqueryUiForm::FormBuilder fields_for(name, *(args << options), &block) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems