<% @title = 'Forgot your password?' %> <%= form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :post }) do |f| %> <%= devise_error_messages! %>
<%= @title %>
<%= f.label :email %>
<%= f.text_field :email %>
<% form_name = 'user_new' %> <%= link_to_function image_tag('stock/tick.png', :alt => '') + "Send me reset password instructions", "$('##{form_name}').submit();", :class => "button positive" %>

<%= link_to "Login here!", new_session_path(resource_name) %> or <%= link_to "Register here!", new_registration_path(resource_name) %>
<% end %>