[Handel] Couldn't render template "file error - cart/add: not found"
Todd W
trwww at sbcglobal.net
Fri Aug 4 21:59:25 CEST 2006
>pierre.beland at prrbl.org wrote:
>> On Fri, Aug 04, 2006 at 05:35:10AM -0400, Todd W wrote:
>>> From: <pierre.beland at prrbl.org>
>>>>
>>>> If I call the add action in the cart namespace
>>>>
>>>> http://localhost:3000/cart/add
>>>>
>>>> I get an error:
>>>>
>>>> Couldn't render template "file error - cart/add: not found"
>>>>
>>>> ...
>>>>
>>>> But if (just to see what happens) I modify the 'view' action in
>>>>
>>>> lib/shop/Controler/Cart.pm
>>>>
>>>> and remove the forward slash before 'cart' in "/cart/view.tt"
>>>> so it becomes "cart/view.tt", I can see the cart with the
>>>> product I've added (or deleted).
>>>>
>>>> ...
>>>>
>>>> Handel 0.33
>>>> Catalyst 5.6902
>>>> Catalyst::View::TT 0.22
>>>>
>>> Are you sure you are using 0.33? I submitted a patch a few months back
>>> that
>>> takes care of this.
>>>
>>> Todd W.
>>>
>>
>> Todd,
>>
>> Thank you for your reply. I am sure it is version 0.33 as far as it is
>> the version number I get when interrogating Handel:
>>
>> ]# perl -MHandel -e 'print Handel->VERSION, "\n";'
>> 0.33
>>
>> The Handel.pm module was commited to the repository at the end of January
>> (although your patch may have been intended for another module which is
>> part of Handel):
>>
>> ]# head /usr/lib/perl5/site_perl/5.8.7/Handel.pm
>> # $Id: Handel.pm 1094 2006-01-24 00:45:55Z claco $
>> package Handel;
>> use strict;
>> use warnings;
>> use vars qw($VERSION);
>>
>> $VERSION = '0.33';
>>
>> I checked out the trunk from the svn repository in mid-may and compiled
>> its content with no problem.
>>
>> I'll reinstall version 0.33 of the module using CPAN and see what
>> happens.
>>
>> Thanks again.
>
>Assuming I didn't just make it all up in my head, the Changelog for 0.33
>includes the patch Todd made.
>
The code from the patch is on CPAN, I can see it browsing the files in this
directory in the distro:
http://search.cpan.org/src/CLACO/Handel-0.33/lib/Catalyst/Helper/Controller/Handel/
The "Last Modified" column says June 19, 2006.
Todd W.
More information about the Handel
mailing list