[Catalyst] Basic CRUD example failing

Zbigniew Lukasiak zzbbyy at gmail.com
Wed Oct 28 05:57:25 GMT 2009


On Wed, Oct 28, 2009 at 6:07 AM, Jason Dixon <jason at dixongroup.net> wrote:
> Hi all,
>
> Learning Catalyst here.  Following along with the manual and I ran into
> a weird issue.  I assume the documentation is right so it must be
> something with my installation (Catalyst packages on OpenBSD 4.6).
>
> Following along with the "SIMPLE DELETE FEATURE" example, I made changes
> to root/src/books/list.tt2.  Alas, the uri is not rendering properly.
>
> <a href="[% c.uri_for(c.controller.action_for('delete'), [book.id]) %]">Delete</a>

I may have not updated my view knowledge - but I would write that as:
<a href="[% c.uri_for(c.controller.action_for('delete'), book.id) %]">Delete</a>

Why did you use the square brackets around 'book.id'?

-- 
Zbigniew Lukasiak
http://brudnopis.blogspot.com/
http://perlalchemy.blogspot.com/



More information about the Catalyst mailing list