spec/lib/generators/nyauth/tmp/app/views/nyauth/passwords/edit.html.erb in nyauth-0.4.0 vs spec/lib/generators/nyauth/tmp/app/views/nyauth/passwords/edit.html.erb in nyauth-0.5.0
- old
+ new
@@ -1,6 +1,13 @@
+<div class="nyauth-error-messages">
+ <%= @client.errors.full_messages.join(',') %>
+</div>
+
<%= form_for @client, url: password_path_for(nyauth_client_name) do |f| %>
- <%= f.object.errors.full_messages %>
- <%= f.password_field :password %>
- <%= f.password_field :password_confirmation %>
- <%= f.submit 'Update' %>
+ <div>
+ <%= f.password_field :password, placeholder: 'password' %>
+ </div>
+ <div>
+ <%= f.password_field :password_confirmation, placeholder: 'password confirmation' %>
+ </div>
+ <%= f.submit t('nav.nyauth.common.update') %>
<% end %>