%- model_class = Content.new.class -%>
<%= model_class.human_attribute_name(:slug) %> | <%= model_class.human_attribute_name(:title) %> | <%=t '.actions', :default => t("helpers.actions") %> |
---|---|---|
<%= link_to content.slug, content_path(content) %> | <%= content.title %> | <%= link_to t('.edit', :default => t("helpers.links.edit")), edit_content_path(content), :class => 'btn btn-mini' %> <%= link_to t('.destroy', :default => t("helpers.links.destroy")), content_path(content), :method => :delete, :confirm => t('.confirm', :default => t("helpers.links.confirm", :default => 'Are you sure?')), :class => 'btn btn-mini btn-danger' %> |