lib/ransack/helpers/form_helper.rb in ransack-0.1.0 vs lib/ransack/helpers/form_helper.rb in ransack-0.2.0

- old
+ new

@@ -14,9 +14,10 @@ html_options = { :class => options[:as] ? "#{options[:as]}_search" : "#{search.klass.to_s.underscore}_search", :id => options[:as] ? "#{options[:as]}_search" : "#{search.klass.to_s.underscore}_search", :method => :get } + options[:as] ||= 'q' options[:html].reverse_merge!(html_options) options[:builder] ||= FormBuilder form_for(record, options, &proc) end \ No newline at end of file