Mercurial > rsstweet
view app/controllers/tweets_controller.rb @ 26:a4deb8a43cc3
Add standalone servers.
| author | edogawaconan <me@myconan.net> |
|---|---|
| date | Fri, 05 Sep 2014 23:51:16 +0900 |
| parents | 70d70736faee |
| children | 03f904c070f7 |
line wrap: on
line source
class TweetsController < ApplicationController 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
