Killer Web Development

by Marco Laspe

Creating a post form

The code suggested in the section didn't work for me, and others

see: http://stackoverflow.com/q/28234422/110488

On need to:

1.
2.
from gluon.tools import Crud
crud = Crud(db)

BTW. Crud is an old API which we no longer support.

1.
form = crud.create(db.post)

should be rewritten as

1.
form = SQLFORM(db.post).process()