Displaying 1 result from an estimated 1 matches for "continuation_calls".
Did you mean:
continuation_call
2006 Mar 08
1
Poor Man''s Continuations
...esult ready, and that is returned.
So I''ve written this, by sticking a catch in perform_action which
effectively halts processing and re-routes to somewhere else when
required.
Now 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 += ''...