def login_required
      setup_client
      
      @user = ::TwitterOAuth::User.new(@client, session[:user]) if session[:user]
      
      @rate_limit_status = @client.rate_limit_status
      
      redirect '/login' unless user
    end
def login_required
      setup_client
      
      @user = ::TwitterOAuth::User.new(@client, session[:user]) if session[:user]
      
      @rate_limit_status = @client.rate_limit_status
      
      redirect '/login' unless user
    end
Redirects to login unless there is an authenticated user