Mercurial > rsstweet
annotate app/controllers/tweets_controller.rb @ 45:c087f4831ec7
Rails 4.2.
author | edogawaconan <me@myconan.net> |
---|---|
date | Sat, 20 Dec 2014 17:51:07 +0900 |
parents | 9e03bbbb1d43 |
children | 8983c426e256 |
rev | line source |
---|---|
15 | 1 class TweetsController < ApplicationController |
38
9e03bbbb1d43
Move static#index to tweet#index.
edogawaconan <me@myconan.net>
parents:
28
diff
changeset
|
2 def index |
9e03bbbb1d43
Move static#index to tweet#index.
edogawaconan <me@myconan.net>
parents:
28
diff
changeset
|
3 end |
9e03bbbb1d43
Move static#index to tweet#index.
edogawaconan <me@myconan.net>
parents:
28
diff
changeset
|
4 |
15 | 5 def show |
6 @tweets = Tweet.new(params[:id]).timeline | |
28 | 7 |
15 | 8 @user = @tweets.first.user |
25 | 9 rescue Twitter::Error::NotFound |
10 head :not_found | |
11 rescue Twitter::Error::Unauthorized | |
12 head :forbidden | |
15 | 13 end |
14 end |