When I went to generate the devise views I wanted to modify the new registration page to capture more than just the email & password. My devise user model has fields like first name
last name
address
and many more.
This is my form as of right now
<div class="row">
<div class="col-sm-6 col-sm-offset-3">
<h2>Sign up</h2>
<%= simple_form_for(resource, as: resource_name, url: registration_path(resource_name), html: {class:'form-horizontal'}) do |f| %>
<%= f.error_notification %>
<div class="row">
<%= f.input :email, required: true, autofocus: true %>
<%= f.input :password, required: true %>
<%= f.input :password_confirmation, required: true %>
</div>
<div class="row">
<h2>About yourself</h2>
<%= f.input :first_name, required: true %>
<%= f.input :last_name, required: true %>
<%= f.input :phone, required: true %>
<%= f.input :addressL1, label: 'Address Line 1', required: true %>
<%= f.input :addressL2, label: 'Address Line 2' %>
<%= f.input :city, required: true %>
<%= f.input :postalCode, required: true %>
<%= f.input :province, required: true, collection: provinces, prompt: '<-- select -->' %>
</div>
<%= f.button :submit, "Sign up" %>
<% end %>
<%= render "devise/shared/links" %>
</div>
</div>
How come when I submit the form only email and password get saved?