[Catalyst] Can't detach from root / create action object
andre at andrewalker.net
Wed Nov 27 15:45:32 GMT 2013
On Wed, Nov 27, 2013 at 02:51:23PM +0000, Craig Chant wrote:
> So I assume
> is returning an action object that is passed to detach.
> However, your example just has a string path '/a/my_action_1' , how is that
> an action object?
It's not :) Catalyst magically converts that for you.
It either gets an action object, or it translates the path to an object for
> Having just tested with:
> is working.
> So the question now is which is better...
> Pass a string or a pass an object?
I like the string option better. It's cleaner to read. But you should be fine
More information about the Catalyst