Mercurial > rsstweet
view app/controllers/tweets_controller.rb @ 42:97a6973e9d94
Reset default scripts.
Done with `rake rails:update:bin`.
author | edogawaconan <me@myconan.net> |
---|---|
date | Thu, 11 Dec 2014 16:05:12 +0900 |
parents | 9e03bbbb1d43 |
children | 8983c426e256 |
line wrap: on
line source
class TweetsController < ApplicationController def index end def show @tweets = Tweet.new(params[:id]).timeline @user = @tweets.first.user rescue Twitter::Error::NotFound head :not_found rescue Twitter::Error::Unauthorized head :forbidden end end