Admin Users

<%= link_to 'Create Admin User', new_admin_admin_user_url, class: 'btn btn-primary pull-right' %>
<% @admin_users.each do |user| %> <% end %>
Email First Name Last Name Created At
<%= user.email %> <%= user.first_name %> <%= user.last_name %> <%= time_ago_in_words(user.created_at) %> ago <%= link_to 'Edit', edit_admin_admin_user_path(user), class: 'btn btn-success' %> <% unless current_user == user %> <%= link_to 'Reset Password', '', class: 'btn btn-warning' %> <%= link_to 'Delete', admin_admin_user_path(user), class: 'btn btn-danger', method: :delete, data: { confirm: "Are you sure you want to delete user '#{user.email}'?" } %> <% end %>