forked from hotsh/rstat.us
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Show multiple error messages when there are multiple errors saving a …
…profile edit Reuse the errors partial from the signup process; make the message more general.
- Loading branch information
1 parent
be0545d
commit 5e405f6
Showing
5 changed files
with
69 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
- if user && user.errors.any? | ||
%div{:id => "error"} | ||
%div{:id => "error_explanation"} | ||
%strong= "#{pluralize(user.errors.count, "error")} prohibited your account from being created:" | ||
%strong= "Sorry, #{pluralize(user.errors.count, "error")} we need you to fix:" | ||
%ul | ||
- user.errors.full_messages.each do |msg| | ||
%li= msg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters