Ruby On Rails Classroom image

prateek  darmwal / 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
prateek  darmwal

Skills    Ruby On Rails

Qualifications :- High School - S.K.M. Sn. Sec. School, Haldwani, College/University - Graphic Era Hill University, Bhimtal,
Location :-Dehradun,Dehradun,Uttarakhand,India
Description:- I like to explore new technologies. I have skills in ruby on rails, php5, cakephp, jquery, javascript, html/css, java, c & c++. I love coding
Explore
 

  Students (0)