[web2py] Re: form.custom - record is not created

2011-09-07 Thread Omi Chiba
Awsome !! I replaced with this and it work! form = crud.create(db.comment, next=URL('')) On Sep 7, 3:54 pm, Jim Steil wrote: > Just add the 'next' parameter to the crud.create statement. > > You can see the details here: > > http://www.web2py.com/book/default/chapter/07#CRUD > > Scroll down and l

Re: [web2py] Re: form.custom - record is not created

2011-09-07 Thread Jim Steil
Just add the 'next' parameter to the crud.create statement. You can see the details here: http://www.web2py.com/book/default/chapter/07#CRUD Scroll down and look under Methods. -Jim On 9/7/2011 3:51 PM, Omi Chiba wrote: Thank you, Anthony ! I still want to do "redirect(URL())" if the en

[web2py] Re: form.custom - record is not created

2011-09-07 Thread Omi Chiba
Thank you, Anthony ! I still want to do "redirect(URL())" if the entry is accepted. Can you explain what condition I should use instead of form.accepts in default.py ? It's necessary to refresh the list on the page. On Sep 7, 3:40 pm, Anthony wrote: > If you are using crud, you should not do fo

[web2py] Re: form.custom - record is not created

2011-09-07 Thread Anthony
If you are using crud, you should not do form.accepts -- crud.create will handle the form.accepts for you. See http://web2py.com/book/default/chapter/07#CRUD. Anthony On Wednesday, September 7, 2011 4:29:24 PM UTC-4, Omi Chiba wrote: > > I'm creating a simple twitter like app for fun. To submit