[Rails] Redirecting after "create" action

Arch Stanton
2006-04-07T16:11:45Z

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.

--
Posted via http://www.ruby-forum.com/.