app/views/users/index.html.erb
<h4>Users</h4>
<%= link_to "Add New User", new_user_path, class: 'icon-plus pull-right inline' %>
<table class="table table-striped">
<thead>
<tr>
<th>Name</th>
<th>E-mail</th>
</tr>
</thead>
<tbody>
<% @users.each do |user| %>
<tr>
<td data-role="user-name"><%= link_to user.name, user %></td>
<td><%= user.email %></td>
<td>
<%= link_to 'Edit', edit_user_path(user), :class => 'btn btn-mini' %>
<%= destroy_link(user) %>
<%= link_to 'Allow Sign In',
allowed_users_path(id: user.id),
method: :post,
data: {confirm: 'Are you sure you want to allow this user to sign in?'},
class: 'btn btn-mini btn-danger' %>
</td>
</tr>
<% end %>
</tbody>
</table>