keep fields reference in devise new registration
This commit is contained in:
parent
b8313aa064
commit
28143a8cce
1 changed files with 5 additions and 1 deletions
|
|
@ -7,7 +7,11 @@
|
||||||
Sign Up
|
Sign Up
|
||||||
.panel-body
|
.panel-body
|
||||||
= semantic_form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f|
|
= semantic_form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f|
|
||||||
= render partial: 'devise/shared/sign_up_fields', locals: { u: f}
|
= f.input :username, required: true
|
||||||
|
= f.input :email
|
||||||
|
= f.input :name, required: true
|
||||||
|
= f.input :password
|
||||||
|
= f.input :password_confirmation
|
||||||
%p.text-right
|
%p.text-right
|
||||||
= f.action :submit, as: :button, label: 'Sign Up', button_html: {class: 'btn btn-success' }
|
= f.action :submit, as: :button, label: 'Sign Up', button_html: {class: 'btn btn-success' }
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue