[Catalyst] index and default actions (was: Why no extra
attributes on Private actions?)
Matt S Trout
dbix-class at trout.me.uk
Thu Jan 24 02:36:00 GMT 2008
On Wed, Jan 23, 2008 at 01:59:11PM -0000, Carl Johnstone wrote:
> >I foresee index and default going the fuck away for 5.80 unless you're in
> >compat mode.
>
> I'm curious about these two.
>
> I've made plenty of use of index, and off the top of my head can't see
> another way of doing the home page of site.
sub home :Chained('/') :Args(0)
> As far as default, I'd currently use that to do my 404 handling - is there
> an alternative way of doing that?
sub error_404 :Chained('/') :Args
(:Path probably works just as well as Chained in both examples)
--
Matt S Trout Need help with your Catalyst or DBIx::Class project?
Technical Director http://www.shadowcat.co.uk/catalyst/
Shadowcat Systems Ltd. Want a managed development or deployment platform?
http://chainsawblues.vox.com/ http://www.shadowcat.co.uk/servers/
More information about the Catalyst
mailing list