
ksmclane at us
May 8, 2012, 8:37 AM
Views: 389
Permalink
|
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: ksmclane [at] us "Ideas come from everything" -- Alfred Hitchcock From: Will Crawford <billcrawford1970 [at] gmail> To: The elegant MVC web framework <catalyst [at] lists> Date: 05/08/2012 10:32 AM Subject: Re: [Catalyst] Getting hashref instead of value On 8 May 2012 16:13, Kenneth S Mclane <ksmclane [at] us> 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: Catalyst [at] lists Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst [at] lists/ Dev site: http://dev.catalyst.perl.org/
|