class ChatController < ApplicationController
protect_from_forgery :only => [:index]
def index
end
def send_data
render :juggernaut => {:channels => [params[:send_to_channel]], :type => :send_to_channels} do |page|
page.insert_html :top, 'chat_data', h(params[:chat_input])+"\n"
end
render :nothing => true
end
end