Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^3: Catalyst::Dispatcher - usage of expand_actions

by stonecolddevin (Parson)
on Aug 26, 2015 at 16:51 UTC ( [id://1140077]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Catalyst::Dispatcher - usage of expand_actions
in thread Catalyst::Dispatcher - usage of expand_actions

Okay, so now narrow down the code to figure out what exactly isn't working. What changed from when it was working? Start adding log statements to major parts of the breadcrumbs code, $c->log->debug("GOT $wherever_in_your_breadcrumbs_code"), and figure out at which point they aren't showing up.

If it's a compilation error, and not a runtime error, do the exact opposite and remove all of your code, and start slowly adding in bits that compile, until you get to a point where you see your error. At that point, you'll have narrowed down your culprit and either have an idea of what's going on or be able to come back here with an isolated piece of code that's failing

By the way, don't worry about bad code, the only way to learn is to swallow your pride and lay everything out and look at it without attachment.

Three thousand years of beautiful tradition, from Moses to Sandy Koufax, you're god damn right I'm living in the fucking past

Replies are listed 'Best First'.
Re^4: Catalyst::Dispatcher - usage of expand_actions
by mkchris (Sexton) on Aug 26, 2015 at 20:55 UTC

    Got it - thank you for your patience, I was indeed being silly and I should have been using $c->action not $c->request->action

    I'm not against learning things by the way, in fact I enjoy it (especially Perl), but you lot know your stuff and I find that a little intimidating!

      Neato, you should update your original post (if you haven't already) to showcase the fix in context.

      Three thousand years of beautiful tradition, from Moses to Sandy Koufax, you're god damn right I'm living in the fucking past

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1140077]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2024-04-25 04:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found