= devise_error_messages! = form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :post, :class => 'form-horizontal' }) do |f| %fieldset %legend Forgot your password? .control-group = f.label :email, :class=>'control-label', :tabindex => "1" .controls = f.text_field :email %p.help-block= link_to "I don't have an account yet!", new_registration_path(resource_name) if User.ancestors.include? Devise::Models::Registerable .form-actions = f.submit "Send Reset Instructions", :class => "btn btn-primary"