0
0
Fork 0

Adding React.js, Redux, revamping dashboard

This commit is contained in:
Eugen Rochko 2016-08-24 17:56:44 +02:00
parent 68c93f8b85
commit 49520d6e62
34 changed files with 297 additions and 75 deletions

View file

@ -1,9 +1,9 @@
class HomeController < ApplicationController
layout 'dashboard'
before_action :authenticate_user!
def index
@timeline = Feed.new(:home, current_user.account).get(10, params[:max_id])
@body_classes = 'app-body'
@home = Feed.new(:home, current_user.account).get(20)
@mentions = Feed.new(:mentions, current_user.account).get(20)
end
end