Duh... thanks a lot Thadeus! I'm glad the people in this group are as helpful and understanding as they are :)
On Aug 3, 9:10 pm, Thadeus Burgess <thade...@thadeusb.com> wrote: > crud.select is not a form. it is an SQLTABLE. You probably ment, form > = crud.create(db.Dinners), or form = crud.update(db.Dinners, id) > > -- > Thadeus > > > > On Tue, Aug 3, 2010 at 10:16 PM, Rob <r...@rmdashr.com> wrote: > > web2py Version 1.81.5 (2010-07-22 23:56:21) > > > def index(): > > rows = db().select(db.Dinners.ALL) > > form = crud.select(db.Dinners) > > return dict(form=form, rows=rows) > > > default/index.html: > > {{extend 'layout.html'}} > > > {{=form.custom.begin}} > > {{=form.custom.end}} > > > Results in: > > Traceback (most recent call last): > > File "/home/rhd/Desktop/web2py/gluon/restricted.py", line 178, in > > restricted > > exec ccode in environment > > File "/home/rhd/Desktop/web2py/applications/NerdDinner/views/default/ > > index.html", line 60, in <module> > > AttributeError: 'SQLTABLE' object has no attribute 'custom' > > > What am I doing wrong?