Top "Content-tag" questions

Use this tag to ask questions related to HTML5 content element.

Rails 3.2 using content_tag to generate a 'Delete' button with twitter-bootstrap icons

I'm trying to replicate the Delete button icon in this example using the Rails 3 content_tag method, within a nested …

ruby-on-rails-3 twitter-bootstrap link-to content-tag
rails 3 link_to with nested content_tag to create <a href with nested span - how to?

Hi I got a noob question, I want to create the following HTML result: <a href="/controller/action" class="…

ruby-on-rails-3 href link-to content-tag
Is that possible to call method that uses "content_tag" from controller in Rails 3?

In my Rails 3 application I use Ajax to get a formatted HTML: $.get("/my/load_page?page=5", function(data) { alert(…

ruby-on-rails ruby-on-rails-3 content-tag
Rails content_tag for <ul> element

How would I get the following html output with the content_tag helper? <ul> <li>1</…

html ruby-on-rails content-tag