diff app/controllers/tweets_controller.rb @ 15:207917e41964

Add tweets~ Feature is now on par with the thing it's replacing.
author edogawaconan <me@myconan.net>
date Fri, 05 Sep 2014 20:37:25 +0900
parents
children 70d70736faee
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/controllers/tweets_controller.rb	Fri Sep 05 20:37:25 2014 +0900
@@ -0,0 +1,6 @@
+class TweetsController < ApplicationController
+  def show
+    @tweets = Tweet.new(params[:id]).timeline
+    @user = @tweets.first.user
+  end
+end