Permalink
Browse files

Bug escape for rails 3.2.8 (extracted from gullitmiranda's PR )

  • Loading branch information...
tatze committed Dec 7, 2012
1 parent 5c71eaf commit d9901f801676aee0b07d6641abdf818233d45c2b
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/formtastic/globalize_inputs.rb
@@ -19,7 +19,8 @@ def globalize_inputs(*args, &proc)
linker = self.template.content_tag(:ul, linker, :class => "language-selection")
- self.template.content_tag(:div, linker + fields, :class => "language-tabs-#{index}") + self.template.content_tag(:script, "$('.language-tabs-#{index}').tabs();", :type => "text/javascript")
+ html = self.template.content_tag(:div, linker + fields, :class => "language-tabs-#{index}")
+ html << self.template.javascript_tag("$('.language-tabs-#{index}').tabs();")
end
end
end

0 comments on commit d9901f8

Please sign in to comment.