Ruby On Rails Classroom image

Pooja  Negi / Student / Web Technology

 
To post your Question Join Classroom
 
Lesson Topics's No:-  First|1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9|Last
Lessons:-Stats and a Follow Form

and

@user.followers . count

 

Compare these to the microposts count from Listing 10.20, where we wrote

@user.microposts.count  

 

to count the microposts.

One final detail worth noting is the presence of CSS ids on some elements, as in  

 

This is for the benefit of the Ajax implementation in Section 11.2.5, which accesses elements on the page using their unique ids.

     With the partial in hand, including the stats on the Home page is easy, as shown in Listing 11.21. (This also gets the test in Listing 11.19 to pass.)

 

 
 
 
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)