[Nitro] fix for form mixing for admin pages

Tim Larson tim at keow.org
Fri Sep 2 13:15:05 EDT 2005

When a table has no relations (strange in production, but
possible during in-between stages of early development)
the form mixin fails.  Line 88 of nitro/mixin/form.rb
needs to be changed to allow for nil.

From: for rel in obj.class.relations
To:   for rel in obj.class.relations || []

--Tim Larson

More information about the Nitro-general mailing list