Skip to content

Example: Howto use catalogs

andreasknoepfle edited this page Sep 14, 2010 · 1 revision

Best practice

Example:


Controller:
@catalog = CatalogManager.instance.catalog ‘treat’
View:
– if @catalog
= radio_tree @catalog, ‘treadform’ , ‘opscode’
– else
= no_catalog_available ‘treat’