<%= form_for(@user, :url => {:action => :update_pwd, :id => @user.id}) do |f| %>
  <!-- f.error_messages -->
  <% if @user.errors.any? %>
    <div id="error_explanation">
      <h2>Fehler:</h2>
      <ul>
         <% @user.errors.full_messages.each { |msg| %>
            <li><%= msg %>
         <% } %>
      </ul>
    </div>
  <% end %>

  <table border="0">
    <tr><td>Passwort:</td><td> <%= f.password_field :password %> </td></tr>
    <tr><td>Passwort Bestätigung:</td><td> <%= f.password_field :password_confirmation %> </td></tr>
  </table>
  <div class="from--submit">
  <%= link_to({ :action => 'index'}) do %>
      <i class="fa fa-times" aria-hidden="true"></i>
  <% end %>

    <button type="submit">
      <i class="fa fa-check" aria-hidden="true"></i>
    </button>
  </div>
<% end %>
