[Catalyst] Getting hashref instead of value

Will Crawford billcrawford1970 at gmail.com
Tue May 8 15:24:40 GMT 2012


On 8 May 2012 16:13, Kenneth S Mclane <ksmclane at us.ibm.com> wrote:
> I am having a problem with my code and I cannot figure out why it is doing
> what it is doing. I have this sub:
>
> sub list :Local {
>         my ($self, $c, $page) = @_;
>         $page = $c->req->param('page') || 1;
>         my $rs = $c->model('ORANGES::Account')->search({}, {
...
> Where I am
> expecting a uri such as 'http://127.0.0.1:3000/accountdetails/detail/170'
> I instead get a uri like this:
> http://127.0.0.1:3000/accountdetails/detail/dbms::Model::ORANGES::Account=HASH%280x5496460%29
>
> This used to work when I was using a view as the basis for my list page.

When you changed this, how did you change the result class? This looks
suspiciously like "I regenerated the schema using an older version of
the schema loader" ..



More information about the Catalyst mailing list