I’m trying to “validate” the input provided in the login form to see if
“username” is entered or not? How do i do this ?
In the model i have done like this
validates_presence_of username, :body, :message => “Missing required
But I’m not this message (Missing required field ) getting printed at
all? How do i print this?
Do i need to add some thing in the “view” also ???
Meaning if the “username” field is blank, then i want to pop up this
message. But i do not see this message getting poped up when i leave the
username field blank.
Can somebody please help out?