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