Dear buddies,
I am exploring the DBIx with Mojolicios with sqlite.
Chinses characters fetche like this:
Single cylinderYamahaBlackCruiserHondaGreenSportSuzukiYellowè¶éYamahaGrey
The code is here:
get '/' => sub { my $self = shift; $self->stash(motorbikes =>
[$schema->resultset('Motorcycle')->all]); } => 'index';.......
In the template:
<table> % foreach my $cycle (@{$motorbikes} ) { <tr> <td><%=
$cycle->type %></td> <td><%= $cycle->brand %></td> <td><%=
$cycle->color %></td> </tr> % } </table>
Regards. _______________________________________________
List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
Searchable Archive: http://www.grokbase.com/group/[email protected]