On Jan 26, 2011, at 12:32 PM, Donald R. Ziesig wrote: > I am replicating the look and feel of a RoR site that I wrote years ago. Got > the look working using <content: replace>..., but the error messages went > away. I tried to solve that by adding a call to <error-messages> as shown > below (and in a few other places, too): > > <extend tag="page" merge-attrs> > <old-page merge without-live-search without-main-nav> > <content: replace> > <section-group class="page-content"> > <error-messages param/> > ---look and feel stuff--- > </section-group> > </content:> > * > * > *</extend> > > This fails rendering with a complaint about nil.errors. > > You have a nil object yada yada > The error occurred while evaluating nil.errors. > > I've scoured the manual and books, but can't find enough info to make a > decision as to how to proceed. I did confirm that flash[:error] exists in > the extended page, but "this" seems to be nil, thus the nil.errors
Ah - I think you may be looking for <flash-messages />, as error-messages is specifically designed to process ActiveRecord errors (the equivalent plain-Rails helper would be error_messages_for). --Matt Jones -- You received this message because you are subscribed to the Google Groups "Hobo Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/hobousers?hl=en.
