Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Catalyst: Users
Re: Getting hashref instead of value
 

Index | Next | Previous | View Flat


ksmclane at us

May 8, 2012, 8:37 AM


Views: 389
Permalink
Re: Getting hashref instead of value [In reply to]

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/

Subject User Time
Getting hashref instead of value ksmclane at us May 8, 2012, 8:13 AM
    Re: Getting hashref instead of value billcrawford1970 at gmail May 8, 2012, 8:24 AM
    Re: Getting hashref instead of value ari.constancio at gmail May 8, 2012, 8:25 AM
    Re: Getting hashref instead of value steve at matsch May 8, 2012, 8:25 AM
        Re: Getting hashref instead of value fs5 at sanger May 8, 2012, 8:31 AM
            Re: Getting hashref instead of value ksmclane at us May 8, 2012, 8:46 AM
    Re: Getting hashref instead of value rbwohlfarth at gmail May 8, 2012, 8:31 AM
    Re: Getting hashref instead of value ksmclane at us May 8, 2012, 8:33 AM
    Re: Getting hashref instead of value alexander.hartmaier at t-systems May 8, 2012, 8:33 AM
        Re: Getting hashref instead of value ksmclane at us May 8, 2012, 8:44 AM
    Re: Getting hashref instead of value ksmclane at us May 8, 2012, 8:37 AM
    Re: Getting hashref instead of value billcrawford1970 at gmail May 8, 2012, 8:48 AM
    Re: Getting hashref instead of value ksmclane at us May 8, 2012, 8:54 AM
    Re: Getting hashref instead of value billcrawford1970 at gmail May 8, 2012, 8:59 AM
    Re: Getting hashref instead of value fs5 at sanger May 8, 2012, 9:03 AM
    Re: Getting hashref instead of value alexander.hartmaier at t-systems May 8, 2012, 9:05 AM
        Re: Getting hashref instead of value ksmclane at us May 8, 2012, 9:15 AM
        Re: Getting hashref instead of value ksmclane at us May 8, 2012, 9:25 AM
    Re: Getting hashref instead of value alexander.hartmaier at t-systems May 8, 2012, 9:23 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.