From 106393f89cb90b3e95a4eac14952a90dc9fa0256 Mon Sep 17 00:00:00 2001 From: highpockets Date: Sun, 20 Oct 2019 21:28:22 +0200 Subject: [PATCH] Update to Authentication iteration --- public/projects/blogger.html | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/public/projects/blogger.html b/public/projects/blogger.html index cd4b3e3fc..ceb70a8ff 100644 --- a/public/projects/blogger.html +++ b/public/projects/blogger.html @@ -3007,12 +3007,12 @@

Terminal

7 8
<div class="field">
-  <%= f.label :password %><br />
-  <%= f.password_field :password %>
+  <%= form.label :password %><br />
+  <%= form.password_field :password %>
 </div>
 <div class="field">
-  <%= f.label :password_confirmation %><br />
-  <%= f.password_field :password_confirmation %>
+  <%= form.label :password_confirmation %><br />
+  <%= form.password_field :password_confirmation %>
 </div>
 
@@ -3054,6 +3054,8 @@

Terminal

resources :authors end + +

We also need to remember to go to our authors_controller.rb and include the :password and :password_confirmation in the author_params function.

With this in place, we can now go to http://localhost:3000/authors/new and we