Redirecting after "create" action

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 forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs