When I do this it works.#!/usr/bin/perluse Dancer;use
Dancer::Plugin::SimpleCRUD;# Simple example:simple_crud(
record_title => 'Sponsor',    prefix => '/sponsor',    db_table =>
'patron',    editable => 1,    deletable => 'no',    sortable =>
'yes',    labels => {     # More human-friendly labels for some
columns        ID => 'Player ID',       first_name => 'First Name',
last_name => 'Last Name',       email => 'Email',    }, );dance;But, when I
add a second record/route --like below. The second one works but the
first does not.richard@gemini:~$ wget -O -
http://0.0.0:3000/sponsor--2015-08-03 09:19:22--
http://0.0.0:3000/sponsorResolving 0.0.0 (0.0.0)... 0.0.0.0Connecting
to 0.0.0 (0.0.0)|0.0.0.0|:3000... connected.HTTP request sent,
awaiting response... 404 Not Found2015-08-03 09:19:22 ERROR 404: Not
Found.Any insight as to what I am doing wrong?
Thanks.#!/usr/bin/perluse Dancer;use Dancer::Plugin::SimpleCRUD;#
Simple example:simple_crud(    record_title => 'Sponsor',    prefix =>
'/sponsor',    db_table => 'patron',    editable => 1,    deletable =>
'no',    sortable => 'yes',    labels => {     # More human-friendly
labels for some columns        ID => 'Player ID',       first_name => 'First
Name',        last_name => 'Last Name', email => 'Email',    },
record_title => 'Player',    prefix => '/player',

   db_table => 'jugador',    editable => 1,    deletable => 'no',
sortable => 'yes',     labels => {     # More human-friendly labels
for some columns        ID => 'Player ID',      first_name => 'First Name',
       last_name => 'Last Name',        SEX => 'Gender',        email => 
'Email',
},  );dance;
_______________________________________________
dancer-users mailing list
[email protected]
http://lists.preshweb.co.uk/mailman/listinfo/dancer-users

Reply via email to