[Catalyst] Mason view hackers (and other views), PING

Matt S Trout dbix-class at trout.me.uk
Sat May 19 18:36:36 GMT 2007


On Sat, May 19, 2007 at 11:50:43AM -0500, Dave Rolsky wrote:
> I tried using it and found an odd problem. In the constructor, you have a 
> line like this:
> 
>         comp_root => $c->config->{root}->stringify,
> 
> I'm not sure what you expect root to be, but in my setup, it's just a 
> plain old string, so this causes a fatal error.

That's to handle Path::Class.

comp_root => do { my $root = $c->config->{root}; "${root}"; },

would be better, I think.

-- 
      Matt S Trout       Need help with your Catalyst or DBIx::Class project?
   Technical Director    Want a managed development or deployment platform?
 Shadowcat Systems Ltd.  Contact mst (at) shadowcatsystems.co.uk for a quote
http://chainsawblues.vox.com/             http://www.shadowcatsystems.co.uk/ 



More information about the Catalyst mailing list