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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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?