21 lines
413 B
Ruby
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
|