Change default controller for the object_type/object_id route

Posted by shmichael on Stack Overflow See other posts from Stack Overflow or by shmichael
Published on 2010-06-06T15:30:03Z Indexed on 2010/06/06 15:32 UTC
Read the original article Hit count: 165

Filed under:

When scaffolding a model & controller, the "new" and "edit" associated forms submit to /object_type/object_id. This triggers the "show" controller.

Where is "show" defined as the default action, and what is the right way to override this?

© Stack Overflow or respective owner

Related posts about ruby-on-rails