Ruby On Rails Classroom image

Pooja  Negi / Student / Web Technology

 
To post your Question Join Classroom
 
Lesson Topics's No:-  First|1 | 2 | 3|
Lessons:-Signup Error Messages

 

 

To see the results of our work in this section, we’ll recapitulate the steps in the failed signup test from Listing 7.16 by visiting the signup page and clicking ‘‘Create my account’’ with blank input fields. The result is shown in Figure 7.18. As you might guess from the working page, at this point the corresponding test should also pass:

$ bundle  exec  rspec spec/requests/user pages spec.rb \
> -e   "signup with invalid information"

 

 

  Unfortunately, there’s a minor blemish in the error messages shown in Figure 7.18: The error for a missing password reads as ‘‘Password digest can’t be blank’’ instead of the moresensible‘‘Password can’t be blank.’’ This is dueto the password digest presence validation hiding in has_secure_password, as mentioned briefly in Section 6.3.4. Fixing this problem is left as an exercise (Section 7.6).

 
 
 
image
Pooja   Negi

Skills    Ruby On Rails

Qualifications :- High School - SSN high school, College/University - HNBGU, College/University - SRHU,
Location :-Ranipokhari,Rishikesh,Uttarakhand,India
Description:- Student
Explore
 

  Students (0)