content_tag_for(tag_name, single_or_multiple_records, prefix = nil, options = nil, &block)
Instance Public methods
#content_tag_for
creates an HTML element with id and class
parameters that relate to the specified Active Record object. For example:
<%= content_tag_for(:tr, @person) do %>
<td><%= @person.first_name %></td>
<td><%= @person.last_name %></td>
<% end %>
would produce the following HTML (assuming
@person is an insta