[Nitro] Nitro/Og Coupling?

George Moschovitis george.moschovitis at gmail.com
Fri Sep 21 03:12:25 EDT 2007

Hmm, interesting, I haven't thought of that.
As you may be aware I am currently redesigning the form helper (have a look
at nform.rb)
I will  take this requirement into account.


On 9/21/07, Robert Mela <rob at robmela.com> wrote:
> 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.attributes
>      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?
> _______________________________________________
> Nitro-general mailing list
> Nitro-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/nitro-general

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/nitro-general/attachments/20070921/387c75cc/attachment.html 

More information about the Nitro-general mailing list