>
> You may need to configure your sources list (/etc/apt/sources.list).
>
What do I need to add?
Below is what my sources.list looks like.
root@catalyst:/etc/apt# more sources.list
#
# deb cdrom:[Debian GNU/Linux 6.0.2.1 _Squeeze_ - Official i386 NETINST Binary-1
20110628-13:01]/ squeeze main
I have tested it now, and this works very well.
Thanks for your help on this matter.
-Original Message-
From: ian.doche...@nomura.com [mailto:ian.doche...@nomura.com]
Sent: 14 September 2011 17:22
To: catalyst@lists.scsys.co.uk
Subject: RE: [Catalyst] RE: DBIC <-> JSON conversion for
Thanks for the tip Ronald, works like nicely.
Cheers,
Roland
From: Ronald J Kimball [mailto:rkimb...@pangeamedia.com]
Sent: 14 September 2011 16:59
To: The elegant MVC web framework
Subject: Re: [Catalyst] RE: DBIC <-> JSON conversion for AJAX
On Wed, Sep 14, 2011 at 11:44
That's because you didn't do exactly what I suggested. :)
You rolled up the creation of an array and the assignment into one, in doing so
you called the search()->all in a scalar context, which will of course give you
the number of rows.
If you really want to do that I think the following shoul
On Wed, Sep 14, 2011 at 11:44 AM, Roland Philibert wrote:
> I did try what you suggest as per:
> sub thing_GET {
>
>my ($self, $c) = @_;
> $self->status_ok(
>$c,
>entity => $rs =
> $c->model('DB::data)->search({},{result_class =>
> 'DBIx::Class::Resu
I did try what you suggest as per:
sub thing_GET {
my ($self, $c) = @_;
$self->status_ok(
$c,
entity => $rs =
$c->model('DB::data)->search({},{result_class =>
'DBIx::Class::ResultClass::HashRefInflator',})->all
);
}
...but the js
search calls ->all() implicitly on the resultset in list context so the
following should work.
sub thing_GET {
my ($self, $c) = @_;
my @arr = $c->model('DB::data)->search({}, {
result_class =>
'DBIx::Class::ResultClass::HashRefInflator',
});
Eden or anybody familiar on this subject,
I tried your solution (REST + DBIx::..::HashRefInflator) but because my
search retrieve more than one rows, I populated an array as per:
sub thing_GET {
my ($self, $c) = @_;
my @arr=();
my $rs = $c->model('DB::data)->search({},