I had previously created a view in the database itself. I realized this isn't ideal for doing CRUD, so I instead started trying to "duplicate" the view I had created "manually". The view was created with data from 4 tables that are the ones I am using here. Nothing was regenerated, I'm just trying to do it a different way.
Regards Kenneth McLane 700 Locust St Systems Compliance Services Dubuque, 52001-6838 I1OB USA GTS Services Delivery Phone: +1-563-845-4674 Tie-Line: 946-4674 Mobile: +1-563-940-7147 e-mail: [email protected] "Ideas come from everything" -- Alfred Hitchcock From: Will Crawford <[email protected]> To: The elegant MVC web framework <[email protected]> Date: 05/08/2012 10:32 AM Subject: Re: [Catalyst] Getting hashref instead of value On 8 May 2012 16:13, Kenneth S Mclane <[email protected]> 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" .. _______________________________________________ List: [email protected] Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[email protected]/ Dev site: http://dev.catalyst.perl.org/
<<image/gif>>
_______________________________________________ List: [email protected] Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[email protected]/ Dev site: http://dev.catalyst.perl.org/
