= devise_error_messages! = form_for(resource, :as => resource_name, :url => session_path(resource_name), :html => {:class => 'form-horizontal'}) do |f| %fieldset %legend Sign In .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 .control-group = f.label :password, :class=>'control-label', :tabindex => "2" .controls = f.password_field :password %p.help-block= link_to "Forgot your password?", new_password_path(resource_name) .form-actions = f.submit "Sign In", :class => "btn btn-primary btn-large", :tabindex => "3"