periodically_call_remote(), WebChat Q

Hi all,

I am teaching myself rails and I can't figure out why the following code does not work: 'say' part works, but nothing shows up for 'get_new' part.

Here is my chat_controller.rb file:

class ChatController < ApplicationController

def index end

def say     @line = params[:say_so] end

def get_new end

end

Hi all,

I am teaching myself rails and I can't figure out why the following code does not work: 'say' part works, but nothing shows up for 'get_new' part.

Each request gets a separate instance of ChatController, so setting @line to something in the say action has no effect on the value of @line when the get_new action is called.

Fred

Thanks!