I have a situation where I could link_to a shared action in my
through 2 separate use cases. In both cases, I’d like the action to
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
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
guess could just call the appropriate template to render based on where
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.