9 lines
220 B
Ruby
9 lines
220 B
Ruby
class DashboardsController < ApplicationController
|
|
before_filter :authenticate_user!
|
|
include ApplicationHelper
|
|
|
|
def index
|
|
@posts = Post.paginate :page => params[:page], :order => 'created_at DESC'
|
|
end
|
|
|
|
end
|