[Catalyst] Can't get last insert id

2006-07-22 Thread Ben Hopkins
I'm running through the tutorial, in Basic CRUD.  In the url_create routine, I went to add a book and got this error message: Caught exception in MyApp::Controller::Books->url_create "DBIx::Class::ResultSet::create(): Can't get last insert id at /home/ben/apps/MyApp/script/../lib/MyApp/Controller/

Re: [Catalyst] Catalyst Digest, Vol 17, Issue 39

2006-07-24 Thread Ben Hopkins
From: John Napiorkowski <[EMAIL PROTECTED]> Subject: Re: [Catalyst] Can't get last insert idTo: The elegant MVC web framework Message-ID: < [EMAIL PROTECTED]>Content-Type: text/plain; charset="us-ascii"I know you probably just cut and paste from the tutorial, but I thin

Re: [Catalyst] Catalyst Digest, Vol 17, Issue 40

2006-07-24 Thread Ben Hopkins
Date: Sun, 23 Jul 2006 08:58:01 -0400From: "August R. Wohlt" < [EMAIL PROTECTED]>Subject: Re: [Catalyst] Can't get last insert idTo: "The elegant MVC web framework" Message-ID: <[EMAIL PROTECTED]>Content-Type: text/plain; charset="iso-8859-1" Are you using CDBI b

Re: [Catalyst] Catalyst Digest, Vol 17, Issue 39

2006-07-24 Thread Ben Hopkins
From: JT Justman < [EMAIL PROTECTED]> Subject: Re: [Catalyst] Can't get last insert id To: The elegant MVC web framework Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Is your 'id' column set to autoincrement? What does

[Catalyst] path actions

2006-08-02 Thread Ben Hopkins
I got through the tutorial, including authentication and authorization.  CRUD for books was done. Thought I'd go to the next level by adding CRUD for authors.  I made an Authors controller, put a list subroutine in it, and wrote a root/authors/list.tt2. When I ran the server, it listed authors/li

Re: [Catalyst] path actions

2006-08-02 Thread Ben Hopkins
Thanks.  I had all the things you suggested, except for on little thing.  Now I know that 'local' should be 'Local'.  So many things in Catalyst are case-agnostic, but this is the perl part, still case sensetive.On 8/2/06, Jonathan Rockway <[EMAIL PROTECTED]> wrote: Ben

[Catalyst] HTML::Widget, callback constraint, and multiple records per form

2006-08-31 Thread Ben Hopkins
Here's what I have:  a table (counties) that has county names in it.  I want to be able to add counties.  Just one county per screen seems pretty dumb, so I want a bunch of counties.  The sole constraint is that a county cannot already be in the database, and I figured the Widgets' constraint metho

Re: [Catalyst] HTML::Widget, callback constraint, and multiple records per form

2006-09-01 Thread Ben Hopkins
eturns a coderef to a snippet that has the context in it ... On 9/1/06, Jason Kohles <[EMAIL PROTECTED] > wrote: On 8/31/06, Ben Hopkins <[EMAIL PROTECTED]> wrote:> Here's what I have:  a table (counties) that has county names in it.  I want > to be able to add counties.  

Re: [Catalyst] HTML::Widget, callback constraint, and multiple records per form

2006-09-04 Thread Ben Hopkins
That did the trick!  Thanks!On 9/1/06, Jason Kohles <[EMAIL PROTECTED]> wrote: On 9/1/06, Ben Hopkins <[EMAIL PROTECTED]> wrote:> Boy is my face red!>>  What a stupid mistake!  Thanks for noticing it.>>  Hmmm.  Makes me think now.  The see_if_exists subroutine now gets t