Thks Matt, it was the little difference between "<table-plus: requirements..." and "<table-plus:requirements...". The difference is no space between table-plus: and requirements. Unfortunately the code shown in the book has a space between and should be corrected. How do I close this issue?
On Dec 29 2010, 7:43 pm, Matt Jones <[email protected]> wrote: > On Dec 28, 2010, at 6:49 AM, kay wrote: > > > > > I am newbie and following rapid-rails-with-hobo tutorial. On chapter > > 5 Advanced tutorials Tutorial 17 - The Agile Project Manager table- > > plus is introduced. Everything went fine until now but when using > > table-plus following error raises up: > > > ActionView::TemplateError (undefined method `member_class' for > > #<Project:0xb59c5ee0>) on line #8 of app/views/projects/show.dryml: > > 5: <repeat:requirements join=", > > "><a/></repeat:requirements> > > 6: </div> > > 7: --> > > 8: <table-plus> > > 9: <empty-message:>No requirements match your > > criteria</empty- > > message:> > > 10: </table-plus> > > 11: </collection:> > > > Can someone help with this issue? > > On line 8, the context (the 'this' variable) is still the project, which is > causing the crash as table-plus assumes that it's called in the context of an > array. Matching the commented-out line above will give the correct behavior: > > <table-plus:requirements> > ... > </table-plus> > > --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.
