Ruby On Rails Classroom image

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