Created
July 30, 2010 14:04
-
-
Save tubbo/500550 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Shows all Follows for the current User, but only send who this User follows in an XML request. | |
| def index | |
| @following = Follow.find(:all, :conditions => {:follower_id => current_user.id}) | |
| @followers = Follow.find(:all, :conditions => {:followee_id => current_user.id}) | |
| @updates = nil | |
| @following.each do |follow| | |
| @updates += follow.user.timeline | |
| end | |
| respond_to do |format| | |
| format.html # index.html.erb | |
| format.xml {render :xml => @following} | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment