public
Description:
Home | Edit | New

API: Show

columns local

The set of columns used in the Show view. The columns themselves are not editable here – only their presence in the Show view.

label local

The heading used for the Show view. Normally this heading is based on the core’s label.

TODO: this setting not used!

link global local

The action link used to tie the Show view to the List table. See API: Action Link for the options on this setting.

formats

Active scaffold supports html, js, json, yaml, and xml formats by default. If you need to add another mime type for the show action you can do it here. The format is then added to the default formats.

Examples:

config.show.formats << :pdf
or
config.show.formats = [:pdf]
Last edited by scambra, Wed Sep 23 06:57:01 -0700 2009
Home | Edit | New
Versions: