I added a few more fields to a devise model, and was trying to create form fields for them in the template. My template looks like this here.
So what I tried is add a street_number field to the devise model and do
<div class="form-group">
<%= f.label :street_number %>
<%= f.street_number_field :street_number, class: "form-control", required: true %>
</div>
Then, I get a error message like
undefined method `street_number_field'
Is there anything I need to do to make sure street_number is recognized, and I can use the method 'street_number_field' like the default devise fields?