Mercurial > rsstweet
view app/controllers/tweets_controller.rb @ 36:1fdb3fc5ec31
Move setting of secret_key_base to application.rb.
One less file to take care about.
author | edogawaconan <me@myconan.net> |
---|---|
date | Thu, 11 Dec 2014 15:43:36 +0900 |
parents | 03f904c070f7 |
children | 9e03bbbb1d43 |
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