diff --git a/views/signup.erb b/views/signup.erb index 1316fb6..b833e5a 100644 --- a/views/signup.erb +++ b/views/signup.erb @@ -1,13 +1,5 @@
<%= _("Enter a password.") %>
- <% end %> -<% end %> -<% end %> - <% if @user and @user.errors.any? %> <% @user.errors.each do |error| %> <% if error.attribute == :email and error.type == :invalid %> @@ -19,6 +11,14 @@ <% end %> <% end %> +<% if @errors %> +<% @errors.each do |error| %> + <% if error.attribute == :password and error.type == :blank %> +<%= _("Enter a password.") %>
+ <% end %> +<% end %> +<% end %> +