Forum: Ruby on Rails Redirecting after "create" action

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.
A111108ed3617edc35da89e84689c3c2?d=identicon&s=25 Arch Stanton (d6veteran)
on 2006-04-07 18: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.

Thanks.
This topic is locked and can not be replied to.