Mercurial > rsstweet
comparison app/controllers/tweets_controller.rb @ 38:9e03bbbb1d43
Move static#index to tweet#index.
author | edogawaconan <me@myconan.net> |
---|---|
date | Thu, 11 Dec 2014 15:47:36 +0900 |
parents | 03f904c070f7 |
children | 8983c426e256 |
comparison
equal
deleted
inserted
replaced
37:81f23f5bf85d | 38:9e03bbbb1d43 |
---|---|
1 class TweetsController < ApplicationController | 1 class TweetsController < ApplicationController |
2 def index | |
3 end | |
4 | |
2 def show | 5 def show |
3 @tweets = Tweet.new(params[:id]).timeline | 6 @tweets = Tweet.new(params[:id]).timeline |
4 | 7 |
5 @user = @tweets.first.user | 8 @user = @tweets.first.user |
6 rescue Twitter::Error::NotFound | 9 rescue Twitter::Error::NotFound |