From be2b4813855b0d1285169dd2cccf212d2021a118 Mon Sep 17 00:00:00 2001 From: Radagaisus Date: Wed, 22 Aug 2012 02:13:38 +0300 Subject: [PATCH] fixed for 1.8.7 syntax --- app/views/devise/confirmations/new.html.erb | 2 +- app/views/devise/passwords/edit.html.erb | 2 +- app/views/devise/passwords/new.html.erb | 2 +- app/views/devise/registrations/edit.html.erb | 2 +- app/views/devise/registrations/new.html.erb | 2 +- app/views/devise/sessions/new.html.erb | 2 +- app/views/devise/unlocks/new.html.erb | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/views/devise/confirmations/new.html.erb b/app/views/devise/confirmations/new.html.erb index 4fb96890..f62a2859 100644 --- a/app/views/devise/confirmations/new.html.erb +++ b/app/views/devise/confirmations/new.html.erb @@ -4,7 +4,7 @@ <%= devise_error_messages! %>
<%= f.label :email %>
- <%= f.email_field :email, {autofocus: true} %>
+ <%= f.email_field :email, {:autofocus => true} %>
<%= f.submit "Resend confirmation instructions" %>
<% end %> diff --git a/app/views/devise/passwords/edit.html.erb b/app/views/devise/passwords/edit.html.erb index b899998c..59d70eca 100644 --- a/app/views/devise/passwords/edit.html.erb +++ b/app/views/devise/passwords/edit.html.erb @@ -5,7 +5,7 @@ <%= f.hidden_field :reset_password_token %>
<%= f.label :password, "New password" %>
- <%= f.password_field :password, {autofocus: true} %>
+ <%= f.password_field :password, {:autofocus => true} %>
<%= f.label :password_confirmation, "Confirm new password" %>
<%= f.password_field :password_confirmation %>
diff --git a/app/views/devise/passwords/new.html.erb b/app/views/devise/passwords/new.html.erb index ece097f2..7d67139e 100644 --- a/app/views/devise/passwords/new.html.erb +++ b/app/views/devise/passwords/new.html.erb @@ -4,7 +4,7 @@ <%= devise_error_messages! %>
<%= f.label :email %>
- <%= f.email_field :email, {autofocus: true} %>
+ <%= f.email_field :email, {:autofocus => true} %>
<%= f.submit "Send me reset password instructions" %>
<% end %> diff --git a/app/views/devise/registrations/edit.html.erb b/app/views/devise/registrations/edit.html.erb index 25fdec3d..97671855 100644 --- a/app/views/devise/registrations/edit.html.erb +++ b/app/views/devise/registrations/edit.html.erb @@ -4,7 +4,7 @@ <%= devise_error_messages! %>
<%= f.label :email %>
- <%= f.email_field :email, {autofocus: true} %>
+ <%= f.email_field :email, {:autofocus => true} %>
<%= f.label :password %> (leave blank if you don't want to change it)
<%= f.password_field :password, :autocomplete => "off" %>
diff --git a/app/views/devise/registrations/new.html.erb b/app/views/devise/registrations/new.html.erb index bd48b73f..d1c16abb 100644 --- a/app/views/devise/registrations/new.html.erb +++ b/app/views/devise/registrations/new.html.erb @@ -4,7 +4,7 @@ <%= devise_error_messages! %>
<%= f.label :email %>
- <%= f.email_field :email, {autofocus: true} %>
+ <%= f.email_field :email, {:autofocus => true} %>
<%= f.label :password %>
<%= f.password_field :password %>
diff --git a/app/views/devise/sessions/new.html.erb b/app/views/devise/sessions/new.html.erb index c3057235..49f22863 100644 --- a/app/views/devise/sessions/new.html.erb +++ b/app/views/devise/sessions/new.html.erb @@ -2,7 +2,7 @@ <%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %>
<%= f.label :email %>
- <%= f.email_field :email, {autofocus: true} %>
+ <%= f.email_field :email, {:autofocus => true} %>
<%= f.label :password %>
<%= f.password_field :password %>
diff --git a/app/views/devise/unlocks/new.html.erb b/app/views/devise/unlocks/new.html.erb index 4b24eae9..050b4e62 100644 --- a/app/views/devise/unlocks/new.html.erb +++ b/app/views/devise/unlocks/new.html.erb @@ -4,7 +4,7 @@ <%= devise_error_messages! %>
<%= f.label :email %>
- <%= f.email_field :email, {autofocus: true} %>
+ <%= f.email_field :email, {:autofocus => true} %>
<%= f.submit "Resend unlock instructions" %>
<% end %>