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/
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
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
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
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
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
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
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.
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