On Mar 7, 6:36 am, Mark <[email protected]> wrote: > I'm sorry guys, maybe it's just me, but I'm having tons of problems > with my forms: > > I have a new() and create() just like what the book says. My new() > action basically just renders my form. My create() action is as such: > > [...] > > As stated in my previous posts, I have a form with some HIDDEN input > fields. I created a ForEach() and all of the Repeating Fields stuff > for the hidden input fields. > > When I submit my form (using POST), the new() action is always > run....instead of create(). This must mean there's something wrong > with my form right?
Sounds like you're either submitting to the wrong URL or your routes aren't doing what you think they are. > Can someone help me out with this? What's going on? Why do I always > get redirected to my new() action? How do I debug this? I tried > placing pdb.set_trace() in my Schema, but it never seems to get run at > all. If you're in `new`, then `create` is never run and hence your validator is never run. You might try some logging in your base controller's __call__ method. -- You received this message because you are subscribed to the Google Groups "pylons-discuss" 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/pylons-discuss?hl=en.
