comparison app/controllers/tweets_controller.rb @ 86:5bfc986200db

The caching becomes a bit confusing because of parameters
author nanaya <me@myconan.net>
date Mon, 27 Jun 2016 05:14:10 +0900
parents fe5ea9b86091
children b01b5265e6d1
comparison
equal deleted inserted replaced
85:101904debfcd 86:5bfc986200db
4 def index 4 def index
5 end 5 end
6 6
7 def show 7 def show
8 client = Tweet.new(params[:id]) 8 client = Tweet.new(params[:id])
9 @tweets = client.timeline :exclude_replies => false, :count => 40 9 @tweets = client.timeline
10 @user = client.user 10 @user = client.user
11 rescue Twitter::Error::NotFound 11 rescue Twitter::Error::NotFound
12 head :not_found 12 head :not_found
13 rescue Twitter::Error::Unauthorized 13 rescue Twitter::Error::Unauthorized
14 head :forbidden 14 head :forbidden