ruby - Rails 3 - is possible to run an action after ending the first? -
i interesting option run action in moment, when ending action.
more specifically, want run action download files page , after downloading files action ending (usually behavior - action running cron).
and automatically run second action. action checking downloaded files...
exist way, how do? thank lot,
m.
you cannot render multiple times in 1 request. http requests can have 1 response, if did, end output concatenated, not useful.
if have controller logic action want invoke (which not include rendering), can calling other action method, or factoring logic need separate method on controller. if trying share logic among separate controllers, need move method applicationcontroller
.
Comments
Post a Comment