How can I add specific content inside a tag when I create it using the tag helper? Is there an "inner_html" option? This doesn't seem to be working.
<%= tag(:map, :id => (@module.css_id), :inner_html =>'innerhtml' ) %>
How can I add specific content inside a tag when I create it using the tag helper? Is there an "inner_html" option? This doesn't seem to be working.
<%= tag(:map, :id => (@module.css_id), :inner_html =>'innerhtml' ) %>
I want it to output this, for example and all the <area shape> stuff will be passed to the tag helper as inner html:
<map name="Map" id="Map"> <area shape="rect" coords="230,678,309,719" href="http:// www.aolartists.com/" alt="AOL"> <area shape="rect" coords="321,720,356,754" href="http:// www.saksfifthavenue.com" alt="Saks Fifth Avenue "> </map>
Per the doc `tag` generates an *empty* tag -- which by definition can't
have content "inside" it. However, `content_tag` can
HTH,