完成user 注册界面
This commit is contained in:
parent
b0deb43b22
commit
7d2162ea10
|
@ -0,0 +1,12 @@
|
||||||
|
%section.content
|
||||||
|
.form-unit
|
||||||
|
= link_to root_path, class: 'brand' do
|
||||||
|
%h1 Blog
|
||||||
|
%h3 注册账号
|
||||||
|
- errors = @user.errors.full_messages
|
||||||
|
- if errors.any?
|
||||||
|
.alert.alert-danger
|
||||||
|
%a.close{"data-dismiss"=>"alert"} ×
|
||||||
|
%span
|
||||||
|
= errors.first
|
||||||
|
= render partial: 'form', locals: {action: 'register'}
|
Loading…
Reference in New Issue