Ruby On Rails Classroom image

Neeraj  Amoli / Professional / 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
Neeraj  Amoli

Skills    Ruby On Rails

Qualifications :-
Location :-Dehradun,Dehradun,Uttrakhand,India
Description:-

I have 3 year experience as a Software Engineer. My Skilled are Android Development (Java), ROR Development .   


Explore
 

  Students (0)