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|Last
Lessons:- Followed users

 

Note that in Listing 11.12 we have omitted the user itself, writing just

relationships.create!  ( ... )

 

instead of the equivalent code

self.relationships.create!(...)  

 

Whether to include the explicit self is largely a matter of taste.

     Of course, users should be ableto unfollow other users as well as follow them, which leads to the somewhat predictable unfollow! method, as shown in Listing 11.13.8  

 
 
 
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)