Permalink
Browse files

Remove required from inputs

- Rails 3 makes everything required by default, this is noted in the
  formtastic initializer
  • Loading branch information...
1 parent 645f3cd commit abba2999cc94b1613586f37c5671864a87420df5 Aaron Kalin committed with Pairing Workstation Zoidberg Feb 15, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 app/views/devise/sessions/new.html.haml
@@ -1,8 +1,8 @@
%h2 Sign In
= semantic_form_for resource, as: resource_name, url: session_path(resource_name) do |f|
= f.inputs do
- = f.input :login, label: "Username or Email", required: false
- = f.input :password, label: "Password #{link_to 'Forgot it?', new_user_password_url}".html_safe, required: false
+ = f.input :login, label: "Username or Email"
+ = f.input :password, label: "Password #{link_to 'Forgot it?', new_user_password_url}".html_safe
= f.buttons do
= f.commit_button :label => "Sign In"
= render :partial => "devise/shared/links"

0 comments on commit abba299

Please sign in to comment.