完成user 注册界面

This commit is contained in:
刘惊坤 2015-12-30 14:10:27 +08:00
parent b0deb43b22
commit 7d2162ea10
1 changed files with 12 additions and 0 deletions

View File

@ -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'}