<%= t('unsubscribe_mail') %>:
<% token = Digest::SHA1.hexdigest(Time.now.to_s) %> <%= form_for @subscriber, :url => unsubscribe_subscriber_path(@subscriber.token) do |form| %><%= form.label :email %> <%= form.text_field :email, :value => "" %> <%= form.hidden_field :token, :value => token %>
<%= form.submit t('unsubscribe') %> or <%= link_to t('cancel'), root_path %>
<% end %>