Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Preview
Start a free Courses trial
to watch this video
This video introduces the two types of messages this stage will cover: form validation messages and flash messages.
[MUSIC]
0:00
During this stage we'll focus
on adding messages to Giflib.
0:04
No, I'm not talking about writing
a chat app within Giflib,
0:08
though that could be pretty cool.
0:11
I'm talking about providing feedback
to users as they're taking action on
0:13
categories and GIFs.
0:17
We'll classify these messages in two ways,
validation messages and flash messages.
0:19
[SOUND] Validation messages are the
messages that will display to users when
0:25
a piece of information users are supposed
to provide is either missing or
0:29
doesn't fit the expected format.
0:33
For example,
an email address is requested, but
0:35
what they entered isn't
a valid email address.
0:38
A validation method would tell
users that they haven't provided
0:41
a valid email address.
0:44
Flash messages are messages that
indicate the overall success or
0:46
failure of actions users have performed.
0:50
For example, the category has
been successfully added or
0:53
something went wrong and we were unable
to delete the GIF, please try again.
0:57
We'll take a look at each one of
these scenarios separately, so
1:01
let's get started.
1:04
You need to sign up for Treehouse in order to download course files.
Sign up