Ruby On Rails Classroom image

Neeraj  Amoli / Professional / Web Technology

 
To post your Question Join Classroom
 
Lesson Topics's No:-  First|1 | 2 | 3|Last
Lessons:-Using form for

(The -e here arranges to run just theexamples whose description strings match "signup page". Note in particular that this is not the substring "signup", which would run all the test in Listing 7.16.) To get these tests to pass again and to get our form to render, we must define an @user variable in the controller action corresponding to new.html.erb, i.e., the new action in the Users controller. The form_for helper expects @user to be a User object, and since we’re creating a new user we simply use User.new, as seen in Listing 7.18.

 

 

With the @user variable so defined, the test for the signup page should be passing again:

$  bundle  exec  rspec spec/requests/user pages spec.rb -e  "signup page"

 

At this point, the form (with the styling from Listing 7.19) appears as in Figure 7.12. Note the reuse of the box_sizing mixin from Listing 7.2. 

 
 
 
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)