class HomeController < ApplicationController before_filter :authenticate def index @statuses = @twitter.user_timeline end def update @twitter.update(params[:text]) redirect_to :action => 'index' end private def authenticate @twitter = Twitter.new('mtl_on_rails', 'mtl_on_rails') end end