Displaying 1 result from an estimated 1 matches for "next_descript".
2005 Dec 31
0
Question about periodically_call_remote
...t; which is just a
text column.
I have a partial, let''s say it''s called _currentdescription.rhtml, that
just shows the description in a p tag.
The table row to show in the view is initially determined by the
controller''s index action, and subsequent calls go through
next_description:
def index
@description_index = 0
@description = get_current_description
end
# Called by ajax call; renders the partial directly after
# determining next row to show
def next_description
@allrows = find_all
@description_index = params[:oldindex] + 1
# if we''ve shown all, the...