in reply to Problems with DBIx::Class and CGI::Application

My code is posted below, I think all that is posted is necessary to see the issue, along with the HTML form.

Not really. You failed to give us any info on the error messages you recieve or even the specifics on what is going wrong (ex. 'The record doesn't create at all' or 'One of the fields doesn't populate' or 'the browser get annoyed, and then makes a PFFFT sound'). If you had looked up any error messages, you would have also been able to pare the code down to a few lines, making it easier for us read. Please read How (Not) To Ask A Question.

Assuming $schema is in scope from above, your syntax looks fine. So the answer will be in the error messages. Look in the webserver error log or run some test cases from the command line.



grep
Mynd you, mønk bites Kan be pretti nasti...

Replies are listed 'Best First'.
Re^2: Problems with DBIx::Class and CGI::Application
by stonecolddevin (Parson) on Sep 22, 2006 at 06:07 UTC

    My mistake grep, i thought when I said that it was having troubles creating that it would be enough

    As it stands, no errors are being returned, so i'll have to delve deeper into my code until i find a solution or something comes up on here.

    meh.
      If you're not see error messages. Run the program from the command line with the debugger.

      A couple of hints:
      Use Mozilla and LiveHTTPHeaders to get the args.
      Set a breakpoint around my $comment.
      Then inspect the vars and step through the create routine.



      grep
      Mynd you, mønk bites Kan be pretti nasti...
      If you don't pass AutoCommit => 1 to connect, you'll be in a transaction. And I don't see a commit call. Bet that's your problem (Class::DBI forces it on for MySQL, we don't) -- mst (yes, one day I'll register)