Ruby On Rails Classroom image

Pooja  Negi / Student / Web Technology

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

                                

 

Note that we have kept the rule get "users/new", which was generated automatically by the Users controller generation in Listing 5.28. Currently, this rule is necessary for the ’users/new’ routing to work, but it doesn’t follow the proper REST conventions (Table 2.2), and we will eliminate it in Section 7.1.2.

                     To get the tests to pass, all we need now is a view with the title and heading ‘‘Sign up’’ (Listing 5.33).

 

                      

 

At this point, the signup test in Listing 5.31 should pass. All that’s left is to add the proper link to the button on the Home page. As with the other routes, match ’/signup’ gives us the named route signup_path, which we put to usein Listing 5.34.

 

                     

 

With that, we’re done with the links and named routes, at least until we add a route for signing in (Chapter 8). The resulting new user page (at the URI /signup) appears in Figure 5.9.

                 At this point the tests should pass:

 

$   bundle  exec   rspec  spec/
 
 
 
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)