[Nitro] Nitro/Og Coupling?

Robert Mela rob at robmela.com
Fri Sep 21 00:16:39 EDT 2007

It looks like Form.attributes autogenerates a form from an incoming object.

I tried it with a non-Og object:

#{form :object => @myobj, yadda yadda yadda
     f.submit 'Submit'

and it reported "undefined method 'validation_errors'".  I threw in a 
no-op validation_errors method, and it threw an exception saying that 
'saved?' was undefined.

Is there a way to pass a non-Og object to a form?  If not, is there a 
way to have an Og object independent of a database?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rob.vcf
Type: text/x-vcard
Size: 116 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/nitro-general/attachments/20070921/4b5a6f1e/attachment.vcf 

More information about the Nitro-general mailing list