test/dummy/app/views/sessions/invite.html.erb in quo_vadis-1.2.1 vs test/dummy/app/views/sessions/invite.html.erb in quo_vadis-1.2.2
- old
+ new
@@ -11,5 +11,21 @@
</p>
<p>
<%= submit_tag 'Save my details' %>
</p>
<% end %>
+
+<!-- OR, to use Rails' form validation helpers:
+<%= form_for @user, url: activation_path(params[:token]), html: {method: :post} do |f| %>
+ <p>
+ <%= label_tag :password %>
+ <%= f.text_field :username, name: 'username' %>
+ </p>
+ <p>
+ <%= label_tag :password %>
+ <%= f.password_field :password, name: 'password' %>
+ </p>
+ <p>
+ <%= submit_tag 'Save my details' %>
+ </p>
+<% end %>
+-->