<td>
  <%= user.full_name %>
</td>
<td>
  <%= link_to user.email, user %>
</td>
<td>
  <%= l(user.confirmed_at, format: :full_with_time) %>
</td>
<td>
  <%= form_for(user) do |f| %>
      <%= f.select(:role, User.roles.keys.map {|role| [role.titleize,role]}) %>
      <%= f.submit 'Change Role', :class => 'button-xs' %>
  <% end %>
</td>
<td>
  <%= link_to("Delete user", user_path(user), :data => { :confirm => "Are you sure?" }, :method => :delete, :class => 'button-xs') unless user == current_user %>
</td>

<td>
  <%= user.full_name %>
</td>
<td>
  <%= link_to user.email, user %>
</td>
<td>
  <%= l(user.confirmed_at, format: :full_with_time) if user.confirmed_at %>
</td>
<td>
  <%= form_for(user) do |f| %>
      <%= f.select(:role, User.roles.keys.map {|role| [role.titleize,role]}) %>
      <%= f.submit 'Change Role', :class => 'button-xs' %>
  <% end %>
</td>
<td>
  <%= link_to("Delete user", user_path(user), :data => { :confirm => "Are you sure?" }, :method => :delete, :class => 'button-xs') unless user == current_user %>
</td>

Handle nil value for confirmed_at in user index.
Handle nil value for confirmed_at in user index.
