[Catalyst] TT2 + CP::Authentication + DBIC gotcha
    Bernhard Graf 
    catalyst2 at augensalat.de
       
    Fri Jul 13 09:45:21 GMT 2007
    
    
  
apv wrote:
> This does not:
>
> [% vote = Catalyst.user.votes({word => w.id}) IF Catalyst.user_exists
> %] [% IF vote %]
>    You rated this “[% vote.rating %]”
> [% END %]
>
> and yields for all cases (and columns): You rated this ""
Try
[% SET vote = Catalyst.user.votes({word => w.id}) IF Catalyst.user_exists %]
(http://search.cpan.org/~abw/Template-Toolkit-2.19/lib/Template/Manual/Syntax.pod#Capturing_Block_Output)
-- 
Bernhard Graf
    
    
More information about the Catalyst
mailing list