From 51d15b7293d5ac4573df5529e1fcdeccffd1a0a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Thu, 30 Jun 2011 15:29:35 -0300 Subject: [PATCH] Add more missing :require => true --- Gemfile.lock | 2 +- .../templates/simple_form_for/registrations/edit.html.erb | 2 +- .../templates/simple_form_for/registrations/new.html.erb | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index bb69602e..a4283c1e 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - devise (1.4.1) + devise (1.4.2) bcrypt-ruby (~> 2.1.2) orm_adapter (~> 0.0.3) warden (~> 1.0.3) diff --git a/lib/generators/templates/simple_form_for/registrations/edit.html.erb b/lib/generators/templates/simple_form_for/registrations/edit.html.erb index a78ebbca..997d824f 100644 --- a/lib/generators/templates/simple_form_for/registrations/edit.html.erb +++ b/lib/generators/templates/simple_form_for/registrations/edit.html.erb @@ -4,7 +4,7 @@ <%= f.error_notification %>
- <%= f.input :email, :autofocus => true %> + <%= f.input :email, :required => true, :autofocus => true %> <%= f.input :password, :hint => "leave it blank if you don't want to change it", :required => false %> <%= f.input :password_confirmation, :required => false %> <%= f.input :current_password, :hint => "we need your current password to confirm your changes", :required => true %> diff --git a/lib/generators/templates/simple_form_for/registrations/new.html.erb b/lib/generators/templates/simple_form_for/registrations/new.html.erb index b9f3b5df..5f85c9ba 100644 --- a/lib/generators/templates/simple_form_for/registrations/new.html.erb +++ b/lib/generators/templates/simple_form_for/registrations/new.html.erb @@ -4,9 +4,9 @@ <%= f.error_notification %>
- <%= f.input :email, :autofocus => true %> - <%= f.input :password %> - <%= f.input :password_confirmation %> + <%= f.input :email, :required => true, :autofocus => true %> + <%= f.input :password, :required => true %> + <%= f.input :password_confirmation, :required => true %>