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’ ) %>
On Tue, Feb 22, 2011 at 3:31 PM, Mlle [email protected] wrote:
How can I add specific content inside a tag when I create it using the
tag helper? Is there an “inner_html” option?
Per the doc tag
generates an empty tag – which by definition can’t
have content “inside” it. However, content_tag
can
Hassan S. ------------------------ [email protected]
twitter: @hassan
I want it to output this, for example and all the stuff
will be passed to the tag helper as inner html:
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs