Hook that gets called between action and response?

1 view
Skip to first unread message

tomtt

unread,
Apr 16, 2009, 11:36:10 AM4/16/09
to resources_controller
A couple of times now I have run into the issue that I want to use a
'between action and response filter' to set certain things that depend
on
what is done in the action. This can not be done in a before filter
because
nothing is defined yet (usually I need resource to be set). It can not
be
done in an after filter either, because that only gets triggered after
the
render. What I want is an after_action (or before_response) filter.

RC has enriched my life with the clear seperation between action and
response, maybe it can enrich me with a corresponding callback as
well? Is
there an issue why this is harder than I would suspect? Is this easy
for
somebody to hack in or will I have to dive in the code and come up
with a
patch?

Cheers, Tom.
Reply all
Reply to author
Forward
0 new messages