Ruby On Rails Classroom image

Anil  Bist / 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
Anil  Bist

Skills    Ruby On Rails

Qualifications :- High School - SLV, College/University - Graphic Era Deemed Univ University,
Location :-Dehradun,Dehradun,Uttarakhand,India
Description:-

I started my Professional Journey in 2006 with one of the Web Development Company in Bangalore and my 1st framework was "Ruby on Rail" as Web development and delivered around 5+ Projects using this platform. Then came another dimension as JEE/Sturst framework, Gradually I realized that I want to build something on my own and give my passion and energy on creating something different a
Explore

 

  Students (0)