now it works, had to put everything in the right order:
crud.settings.create_next = URL('index')
post=db(db.blog.id==request.args(0)).select().first()
db.comments.post_id.default=post.id
form=crud.create(db.comments)
Thanks again
On Wed, Dec 5, 2012 at 12:55 PM, jonas wrote:
> T
Thanks for the reply. I will the section in the book to get a clearer
understanding of what is happening. Unfortunately both solutions posted
here didn't work, no redirection or verification.
On Monday, December 3, 2012 2:43:23 AM UTC+1, Anthony wrote:
>
> Read through the CRUD section of the b
Read through the CRUD section of the book again:
http://web2py.com/books/default/chapter/29/07#CRUD.
Crud automatically handles form processing, so you do not call
form.process() after calling crud.create() -- in that case, you are
processing the form twice. Instead, crud.create() handles the p
3 matches
Mail list logo