Remove .html from HAML views paths (except layout)
This commit is contained in:
20
app/views/users/new.haml
Normal file
20
app/views/users/new.haml
Normal file
@@ -0,0 +1,20 @@
|
||||
= form_for @user, url: users_path do |f|
|
||||
- if @user.errors.any?
|
||||
%ul
|
||||
- @user.errors.full_messages.each do |m|
|
||||
%li= m
|
||||
|
||||
%table
|
||||
%tbody
|
||||
%tr
|
||||
%th= f.label :email
|
||||
%td= f.text_field :email
|
||||
%tr
|
||||
%th= f.label :password
|
||||
%td= f.password_field :password
|
||||
%tr
|
||||
%th= f.label :password_confirmation
|
||||
%td= f.password_field :password_confirmation
|
||||
%tfoot
|
||||
%tr
|
||||
%td= f.submit 'Sign up'
|
||||
Reference in New Issue
Block a user