class TwitsController < ApplicationController # GET /twits # GET /twits.xml def index @twits = Twit.find(:all, :conditions => [ "user_id IN (?)", current_user.following_user_ids.push(current_user.id) ], :order => 'created_at desc') @twit = Twit.new ....