Permalink
Browse files

Removed deprecated 2nd argument to ActionView::Helpers::TextHelper#co…

…ncat.
  • Loading branch information...
ximus authored and nesquena committed Feb 26, 2010
1 parent 98fc8a8 commit bba01a1c7cf835ae6e2c2d7fd134c219c29f5bb3
Showing with 6 additions and 5 deletions.
  1. +1 −0 lib/semantic_form_builder.rb
  2. +5 −5 lib/semantic_form_helpers.rb
@@ -271,6 +271,7 @@ def self.create_field_element(input_type_name)
options = args.length > 0 ? args[0] : {} # grab the options hash
object_value = @object ? @object.send(attribute) : nil # grab the object's value
options.reverse_merge!(:label => attribute.to_s.titleize, :id => "#{object_name(:id)}_#{attribute}", :value => object_value.to_s)
+ debugger
options.reverse_merge!(:error => @object.errors.on(attribute)) if @object
@renderer.send(template_method, "#{object_name}[#{attribute}]", options)
end
@@ -89,12 +89,12 @@ def semantic_fields_for(name, *args, &block)
# end
#
def semantic_fieldset_tag(name=nil, options={}, &block)
- concat(tag(:fieldset, options, true), block.binding)
- concat(content_tag(:legend, name), block.binding) if name
- concat(tag(:dl, { :class => 'semantic-form' }, true), block.binding)
+ concat(tag(:fieldset, options, true))
+ concat(content_tag(:legend, name)) if name
+ concat(tag(:dl, { :class => 'semantic-form' }, true))
yield FieldsRenderer.new(self) # yield the field renderer
- concat("</dl>", block.binding)
- concat("</fieldset>", block.binding)
+ concat("</dl>")
+ concat("</fieldset>")
end

0 comments on commit bba01a1

Please sign in to comment.