chain

Purpose

Uses flash storage to implicitly retain the model following an HTTP redirect from one action to another.

Examples


chain(action:"details",model:book:new Book(title:'The Shawshank Redemption'))

Description

Usage:

chain(controller*, action, id*, model, params*)

Arguments:

The chain method stores the passed model in flash scope and then performs an HTTP redirect. The model is then restored for the next request.

The chain method requires either a URI to redirect to or a controller/action/id name combination