Signup I - form_for


#1

I don't why this just won't pass. Help me plz

<%= form_for(@user) do |f|%>
  <div class="form">
    <%= f.text_field :first_name %>
    <%= f.text_field :last_name %>
    <%= f.text_field :email %>
    <%= f.text_field :password_digest %>
  </div>
  <div class="btn-submit">
     <%= f.submit "signup" %>
  </div>
<%end%>


https://www.codecademy.com/zh/courses/rails-auth/lessons/authentication/exercises/authentication-signup-i


#2

Hi @desire_fox,

You need to use an email_field and a password_field for the last two form inputs :slight_smile:


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.