Skip to content
Browse files

Merge branch 'master' of github.com:wwidea/composable_builders

* 'master' of github.com:wwidea/composable_builders:
  make raido_select html_safe
  • Loading branch information...
2 parents 4a2d9a1 + 4c776d5 commit da44b3d7c735db6aa2a6f2e38f40eb30765424b0 @aaron aaron committed Sep 15, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/composable_builders/components/tagged.rb
View
6 lib/composable_builders/components/tagged.rb
@@ -59,10 +59,10 @@ def cancel(path = {:action => 'index'})
def radio_select(method, choices, opts = {})
field_name = opts.delete(:field_name) || format_field_name(method)
- String.new.tap do |s|
+ (String.new.tap do |s|
s << @template.content_tag(:div, @template.content_tag(:label, field_name))
- s << @template.content_tag(:ul, build_radio_buttons(method, choices, opts), :class => 'multicheck')
- end
+ s << @template.content_tag(:ul, build_radio_buttons(method, choices, opts).html_safe, :class => 'multicheck')
+ end).html_safe
end
def habtm_check_boxes(items, options = {})

0 comments on commit da44b3d

Please sign in to comment.
Something went wrong with that request. Please try again.