%- model_class = Article -%>
| <%= 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) %> | <%=t '.actions', :default => t("helpers.actions") %> |
|---|---|---|---|---|---|---|
| <%= link_to article.id, article_path(article) %> | <%= article.title %> | <%= article.content %> | <%= article.rate %> | <%= article.active %> | <%= article.created %> | <%= link_to t('.more', :default => t("helpers.links.more")), article_path(article), :class => 'btn btn-info btn-xs' %> <%= 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' %> |