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
A helper's not a bad idea but seems a bit of an overkill for what's essentially me being fusy about syntax. I suppose there's nothing built into rails which is what I was hoping for. I'll just use this:
content_tag(:div, "Some Text", :id => "foo", 'data-data_attr' => some_variable)