Displaying 1 result from an estimated 1 matches for "conitnuation_call".
2006 Mar 08
1
Poor Man''s Continuations
...I can do this in my controller (note that the main loop does not
need to know about what goes on within the continuation_calls, also
note the simple conditional logic for stating the flow of the
applictaion).
class MyController < ApplicationController
has_continuations
def main
item = conitnuation_call :action => ''get_name''
if item == ''frank''
item += '' '' + continuation_call :action => ''get_frank_extra''
end
end
def get_name
if params[:name] and params[:name].size > 10
if continuation_call...