comparison app/controllers/tweets_controller.rb @ 116:32c8c150cd80

100% less javascripts
author nanaya <me@myconan.net>
date Sun, 12 Feb 2017 16:59:32 +0900
parents b01b5265e6d1
children 3ff631612493
comparison
equal deleted inserted replaced
115:c712d307e197 116:32c8c150cd80
1 class TweetsController < ApplicationController 1 class TweetsController < ApplicationController
2 before_action :validate_id, :only => :show 2 before_action :validate_id, :only => :show
3 3
4 def index 4 def index
5 return try_redirect if params[:id]
5 end 6 end
6 7
7 def show 8 def show
8 client = Tweet.new(params[:id]) 9 client = Tweet.new(params[:id])
9 @tweets = client.timeline 10 @tweets = client.timeline