diaspora/app/controllers/dashboard_controller.rb
2010-06-20 22:13:24 -07:00

21 lines
413 B
Ruby

class DashboardController < ApplicationController
before_filter :authenticate_user!, :except => :receive
include ApplicationHelper
def index
posts = Post.all.order_by( [:created_at, :desc] )
@posts = posts
end
def receive
store_posts_from_xml (params[:xml])
render :nothing => true
end
def socket
#this is just for me to test teh sockets!
render "socket"
end
end