Browse files

should use attribute here .

  • Loading branch information...
1 parent 87a71dc commit 43043dcfe8482f90f0dc05ac486b786961df9f76 @feipeng feipeng committed Nov 24, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/semantic_form_builder.rb
View
2 lib/semantic_form_builder.rb 100755 → 100644
@@ -109,7 +109,7 @@ def radio_buttons(attribute, options)
html << @template.content_tag(:dd) do
returning choices_html = String.new do
options[:choices].each do |choice|
- choices_html << radio_button("gender", choice.to_s) +
+ choices_html << radio_button(attribute, choice.to_s) +
@template.content_tag("label" , "#{choice.to_s.titleize}", :for => "#{object_name}_#{attribute}_#{choice.to_s}" )
end
end

0 comments on commit 43043dc

Please sign in to comment.