The issue, of course, is that ruby symbols don\'t like hyphens. So something like this obviously won\'t work:
content_tag(:div, \"Some Text\", :id => \"fo
Rails 3.1 ships with built-in helpers:
http://api.rubyonrails.org/classes/ActionView/Helpers/TagHelper.html#method-i-tag
E.g.,
tag("div", :data => {:name => 'Stephen', :city_state => %w(Chicago IL)}) # =>