diff --git a/examples/blog/app/views/users/new.erb b/examples/blog/app/views/users/new.erb new file mode 100644 index 0000000..40fe7f9 --- /dev/null +++ b/examples/blog/app/views/users/new.erb @@ -0,0 +1,27 @@ +<% unless errors.empty? %> +

<%= t('posts.errors_heading') %>

+ +<% end %> + +

<%= t('users.heading') %>

+<% form_for(user, url: '/users', method: :post) do |f| %> +

+ <%== f.label(:email, t('users.email_label')) %> + <%== f.email_field(:email) %> + <%== f.error_messages(:email) %> +

+

+ <%== f.label(:password, t('users.password_label')) %> + <%== f.password_field(:password) %> + <%== f.error_messages(:password) %> +

+

+ <%== f.label(:password_confirmation, t('users.password_confirmation_label')) %> + <%== f.password_field(:password_confirmation) %> +

+ <%== f.submit(t('users.submit')) %> +<% end %>