Forum: Ruby on Rails passing a redirect_to action through a view to controller.

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
036be8d5d83a98e546b98d64e3fd6c20?d=identicon&s=25 Sam Donaldson (Guest)
on 2006-06-08 00:41
(Received via mailing list)

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
executed, I
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.
This topic is locked and can not be replied to.