User's password form field not getting detected


#1
 <%= form_for(@user) do |f| %>  
    <%= f.text_field "first_name" %> 
    <%= f.text_field "last_name" %> 
    <%= f.text_field "email" %> 
    <%= f.text_field :password %> 
    <%= password_field_tag :password %> 
  <input type='password' name='password'/>
    <%= f.submit "Create" %> 
<% end %>

this is my code...

no matter what i do it doesn't get that i have a field for user's password.

exercise number is 4. Sing up 1 > step 4


#2

I had the same issue but after a bit of googling worked out that you have to use password_field instead of text_field for the password input field