app/views/representative/confirmations/show.html.erb
<h2>Velkommen <%= resource.name %>!</h2>
<%= form_for resource,
as: resource_name,
url: update_representative_confirmation_path,
html: {method: 'put'},
id: 'activation-form' do |f| %>
<% if resource.errors.any? %>
<div class="alert alert-error">
<strong>Oops!</strong> Det gikk ikke helt etter planen:
<ul>
<% resource.errors.full_messages.each do |message| %>
<li><%= message %></li>
<% end %>
</ul>
</div>
<% end %>
<fieldset>
<legend>Aktiver konto for å svare på spørsmål fra dine velgere!</legend>
<% if @requires_password %>
<p><%= f.label :password, 'Velg et passord:' %> <%= f.password_field :password %></p>
<p><%= f.label :password_confirmation, 'Bekreft passord:' %> <%= f.password_field :password_confirmation %></p>
<% end %>
<%= hidden_field_tag :confirmation_token,@confirmation_token %>
<p><%= f.submit "Aktiver!", class: 'btn btn-primary' %></p>
</fieldset>
<% end %>