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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community 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)
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.
This topic is locked and can not be replied to.