Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class FavoritesController < ApplicationController
- before_filter :login_required
- def index
- @friends = current_user.twitter.get('/statuses/friends')
- @favorites = current_user.twitter.get('/favorites/' + current_user.twitter_id.to_s())
- end
- end
Add Comment
Please, Sign In to add comment