[dancer-users] Adding a second route to a simple crud.

Richard Reina gatorreina at gmail.com
Mon Aug 3 15:45:45 BST 2015


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 at 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;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.preshweb.co.uk/pipermail/dancer-users/attachments/20150803/3f9ad0f0/attachment.html>


More information about the dancer-users mailing list