Intercepting scaffold functions

Two things:

  1. I want to control where the view returns to after creating a new
    object. Currently it directs to the list action of the model’s
    controller.

  2. Where do I edit the js that produces the green ‘objected created’
    text that is used in the scaffold default new action?

Thanks.