- - <%= render 'layouts/nav' %> - - <%= form_for(@user) do |f| %> - <%= render 'shared/error_messages', object: f.object %> - -
-
- - <%= f.text_field :name, class: 'form-control', placeholder: "请输入名称" %> -
-
- -
-
- - <%= f.email_field :email, class: 'form-control', placeholder: "请输入邮箱" %> -
-
- -
-
- - <%= f.password_field :password, class: 'form-control', placeholder: "请输入密码" %> -
-
- -
-
- - <%= f.password_field :password_confirmation, class: 'form-control', placeholder: "请再次输入密码" %> -
-
- - <%= f.submit "注册", class: "btn btn-primary btn-block" %> - <% end %> - -