[Nitro] Using Facets Builder
George Moschovitis
george.moschovitis at gmail.com
Thu Feb 8 11:34:56 EST 2007
When you call the form helper from an action flash is automagically defined
(just like context/request/response/session, etc...)
-g.
On 2/8/07, transfire at gmail.com <transfire at gmail.com> wrote:
>
>
>
> On Feb 8, 4:08 am, "George Moschovitis" <george.moschovi... at gmail.com>
> wrote:
> > > i'll have a look.
> >
> > thanks! If you need something, let me know...
>
> if errors = flash[:ERRORS]
> if errors.is_a? Array
> options[:errors].concat(errors)
> elsif errors.is_a? Glue::Validation::Errors
> options[:errors].concat(errors.to_a)
> else
> options[:errors] << errors
> end
> end
>
> from form.rb where does flash come in? it's complaing that it's
> undefined and I don't see where it gets defined?
>
> -t.
>
> _______________________________________________
> Nitro-general mailing list
> Nitro-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/nitro-general
>
--
http://blog.gmosx.com
http://cull.gr
http://www.joy.gr
http://nitroproject.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/nitro-general/attachments/20070208/fac7f62a/attachment.html
More information about the Nitro-general
mailing list