[Catalyst] CRUD for all tables in Catalyst 5

Marcus Ramberg marcus at thefeed.no
Mon Sep 12 23:28:56 CEST 2005


On 9/12/05, Alan Tam <Tam at siulung.com> wrote:
> 
> Hi,
> 
> I've read [1] which gave me 2 methods to populate CRUD methods for all 
> tables, but both does not work here in Catalyst 5.
> 
> In particular, I tried this:
> __PACKAGE__->set_action(
> 'default', sub { ... } );
> 


This syntax is obsolete since Catalyst 5.0 ... In 5.x it would look 
something like this:

sub default : Private {
my ($self,$c) = @_;
}

I suggest you look at Catalyst::Manual::Intro for a introduction to the new 
Catalyst :)

-- 
With regards
Marcus Ramberg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rawmode.org/pipermail/catalyst/attachments/20050912/95802020/attachment.htm


More information about the Catalyst mailing list