Passing a redirect_to action through a view to controller

Hi,

I have a situation where I could link_to a shared action in my
controller
through 2 separate use cases. In both cases, I’d like the action to
execute
and then render the same exact page from where it was called. In other
words, just execute the action and then not do anything, maybe just
refresh
the current page from where I called the shared action. If I do have to
specify an action to redirect_to after my shared action has been
executed, I
guess could just call the appropriate template to render based on where
the
action was called from but this requires passing in information from the
view to the shared action in the controller, is this a good idea? This
seems hacky to me.

Any suggestions would be helpful.