lib/generators/bootup/templates/authentication/views/users/new.html.erb in bootup-0.0.3 vs lib/generators/bootup/templates/authentication/views/users/new.html.erb in bootup-0.0.4
- old
+ new
@@ -1,4 +1,18 @@
-<h1>New user</h1>
+<h1>New User</h1>
<hr>
-<%= render 'form' %>
+<%= simple_form_for(@user, url: users_path(@user)) do |f| %>
+ <%= f.error_notification %>
+
+ <div class="form-inputs">
+ <%= f.input :username %>
+ <%= f.input :email %>
+ <%= f.input :password %>
+ <%= f.input :password_confirmation %>
+ </div>
+
+ <div class="form-actions">
+ <%= f.button :submit, class: "btn btn-primary" %>
+ <%= link_to 'Back', root_path, class: "btn" %>
+ </div>
+<% end %>