- model_class = User.new.class .page-header %h1=t '.title', :default => model_class.model_name.human.pluralize %table.table.table-striped %thead %tr %th= model_class.human_attribute_name(:id) %th= model_class.human_attribute_name(:email) %th= model_class.human_attribute_name(:first_name) %th= model_class.human_attribute_name(:last_name) %th= model_class.human_attribute_name(:nickname) %th= model_class.human_attribute_name(:created_at) %th=t '.actions', :default => t("helpers.actions") %tbody - users.each do |user| %tr %td= link_to user.id, user_path(user) %td= link_to user.email, user_path(user) %td= user.first_name %td= user.last_name %td= user.nickname %td=l user.created_at %td = link_to t('.edit', :default => t("helpers.links.edit")), edit_user_path(user), :class => 'btn btn-mini' = link_to t('.destroy', :default => t("helpers.links.destroy")), user_path(user), :method => :delete, :confirm => t('.confirm', :default => t("helpers.links.confirm", :default => 'Are you sure?')), :class => 'btn btn-mini btn-danger' = will_paginate users = link_to t('.new', :default => t("helpers.links.new")), new_user_path, :class => 'btn btn-primary'