Forum: Ruby on Rails Redirecting after "create" action

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.
Arch S. (Guest)
on 2006-04-07 20:11
I have several objects that I want to redirect back to my controller
'foo' action 'list' after the 'create' action is completed.

So the nav would go:

foo/list > foobar/new > foobar/create (redirects to) foo/list

the default behavior is to take the user to the list view for that
specific object.  I want to intercept that and take them back to
foo/list.  What is the simplest way to do this since I have to write it
for a dozen objects.

This topic is locked and can not be replied to.