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