Content_tag doubts

I have of the doubts of use content_tag, if i write this:

<% for object in @object %>

  • <%= object.title %>
  • <% end %>

    using content_tag:

    for object in @object
    content_tag :li do
    concat object.title

    what is the real advantages?
    which employs less resources to interpreter?


    This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

    | Privacy Policy | Terms of Service | Remote Ruby Jobs