From 96686409086d54d104b28b58f289b21513cd5cbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Wed, 28 Oct 2009 08:31:54 -0200 Subject: [PATCH] Fix a bug introduced in last release refactoring. --- app/views/confirmations/new.html.erb | 2 +- app/views/passwords/edit.html.erb | 2 +- app/views/passwords/new.html.erb | 2 +- app/views/sessions/new.html.erb | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/confirmations/new.html.erb b/app/views/confirmations/new.html.erb index 0a0d0f21..9789f8b3 100644 --- a/app/views/confirmations/new.html.erb +++ b/app/views/confirmations/new.html.erb @@ -1,6 +1,6 @@

Resend confirmation instructions

-<% form_for resource, :url => confirmation_path(resource_name) do |f| %> +<% form_for resource_name, resource, :url => confirmation_path(resource_name) do |f| %> <%= f.error_messages %>

<%= f.label :email %>

diff --git a/app/views/passwords/edit.html.erb b/app/views/passwords/edit.html.erb index bf7fddff..cf17f780 100644 --- a/app/views/passwords/edit.html.erb +++ b/app/views/passwords/edit.html.erb @@ -1,6 +1,6 @@

Change your password

-<% form_for resource, :url => password_path(resource_name), :html => { :method => :put } do |f| %> +<% form_for resource_name, resource, :url => password_path(resource_name), :html => { :method => :put } do |f| %> <%= f.error_messages %> <%= f.hidden_field :reset_password_token %> diff --git a/app/views/passwords/new.html.erb b/app/views/passwords/new.html.erb index 37ac6fd8..b3cc5c3c 100644 --- a/app/views/passwords/new.html.erb +++ b/app/views/passwords/new.html.erb @@ -1,6 +1,6 @@

Forgot your password?

-<% form_for resource, :url => password_path(resource_name) do |f| %> +<% form_for resource_name, resource, :url => password_path(resource_name) do |f| %> <%= f.error_messages %>

<%= f.label :email %>

diff --git a/app/views/sessions/new.html.erb b/app/views/sessions/new.html.erb index 81cf6803..b73c80dc 100644 --- a/app/views/sessions/new.html.erb +++ b/app/views/sessions/new.html.erb @@ -1,6 +1,6 @@

Sign in

-<% form_for resource, :url => session_path(resource_name) do |f| -%> +<% form_for resource_name, resource, :url => session_path(resource_name) do |f| -%>

<%= f.label :email %>

<%= f.text_field :email %>