<%- model_class = Article -%> <% @articles.each do |article| %> <% end %>
<%= model_class.human_attribute_name(:id) %> <%= model_class.human_attribute_name(:title) %> <%= model_class.human_attribute_name(:content) %> <%= model_class.human_attribute_name(:rate) %> <%= model_class.human_attribute_name(:active) %> <%= model_class.human_attribute_name(:created_by) %> <%= model_class.human_attribute_name(:updated_by) %> <%= model_class.human_attribute_name(:created_at) %> <%=t '.actions', :default => t("helpers.actions") %>
<%= link_to article.id, article_path(article) %> <%= article.title %> <%= article.content %> <%= article.rate %> <%= article.active %> <%= article.created_by %> <%= article.updated_by %> <%=l article.created_at %> <%= link_to t('.edit', :default => t("helpers.links.edit")), edit_article_path(article), :class => 'btn btn-default btn-xs' %> <%= link_to t('.destroy', :default => t("helpers.links.destroy")), article_path(article), :method => :delete, :data => { :confirm => t('.confirm', :default => t("helpers.links.confirm", :default => 'Are you sure?')) }, :class => 'btn btn-xs btn-danger' %>
<%= link_to t('.new', :default => t("helpers.links.new")), new_article_path, :class => 'btn btn-primary' %>