<div dir="ltr"><pre>When I do this it works.
<a name="l-2"></a>
<a name="l-3"></a>#!/usr/bin/perl
<a name="l-4"></a>
<a name="l-5"></a>use Dancer;
<a name="l-6"></a>use Dancer::Plugin::SimpleCRUD;
<a name="l-7"></a>
<a name="l-8"></a># Simple example:
<a name="l-9"></a>
<a name="l-10"></a>simple_crud(
<a name="l-11"></a>
<a name="l-12"></a> record_title => 'Sponsor',
<a name="l-13"></a> prefix => '/sponsor',
<a name="l-14"></a> db_table => 'patron',
<a name="l-15"></a> editable => 1,
<a name="l-16"></a> deletable => 'no',
<a name="l-17"></a> sortable => 'yes',
<a name="l-18"></a> labels => { # More human-friendly labels for some columns
<a name="l-19"></a> ID => 'Player ID',
<a name="l-20"></a> first_name => 'First Name',
<a name="l-21"></a> last_name => 'Last Name',
<a name="l-22"></a> email => 'Email',
<a name="l-23"></a>
<a name="l-24"></a> },
<a name="l-25"></a>
<a name="l-26"></a>);
<a name="l-27"></a>
<a name="l-28"></a>dance;
<a name="l-29"></a>
<a name="l-30"></a>But, when I add a second record/route --like below. The second one works but the first does not.
<a name="l-31"></a>
<a name="l-32"></a>richard@gemini:~$ wget -O - <a href="http://0.0.0:3000/sponsor">http://0.0.0:3000/sponsor</a>
<a name="l-33"></a>--2015-08-03 09:19:22-- <a href="http://0.0.0:3000/sponsor">http://0.0.0:3000/sponsor</a>
<a name="l-34"></a>Resolving 0.0.0 (0.0.0)... 0.0.0.0
<a name="l-35"></a>Connecting to 0.0.0 (0.0.0)|0.0.0.0|:3000... connected.
<a name="l-36"></a>HTTP request sent, awaiting response... 404 Not Found
<a name="l-37"></a>2015-08-03 09:19:22 ERROR 404: Not Found.
<a name="l-38"></a>
<a name="l-39"></a>
<a name="l-40"></a>Any insight as to what I am doing wrong? Thanks.
<a name="l-41"></a>
<a name="l-42"></a>#!/usr/bin/perl
<a name="l-43"></a>
<a name="l-44"></a>use Dancer;
<a name="l-45"></a>use Dancer::Plugin::SimpleCRUD;
<a name="l-46"></a>
<a name="l-47"></a># Simple example:
<a name="l-48"></a>
<a name="l-49"></a>simple_crud(
<a name="l-50"></a>
<a name="l-51"></a> record_title => 'Sponsor',
<a name="l-52"></a> prefix => '/sponsor',
<a name="l-53"></a> db_table => 'patron',
<a name="l-54"></a> editable => 1,
<a name="l-55"></a> deletable => 'no',
<a name="l-56"></a> sortable => 'yes',
<a name="l-57"></a> labels => { # More human-friendly labels for some columns
<a name="l-58"></a> ID => 'Player ID',
<a name="l-59"></a> first_name => 'First Name',
<a name="l-60"></a> last_name => 'Last Name',
<a name="l-61"></a> email => 'Email',
<a name="l-62"></a>
<a name="l-63"></a> },
<a name="l-64"></a>
<a name="l-65"></a>
<a name="l-66"></a> record_title => 'Player',
<a name="l-67"></a> prefix => '/player',<br> <br> db_table => 'jugador',
<a name="l-69"></a> editable => 1,
<a name="l-70"></a> deletable => 'no',
<a name="l-71"></a> sortable => 'yes',
<a name="l-72"></a> labels => { # More human-friendly labels for some columns
<a name="l-73"></a> ID => 'Player ID',
<a name="l-74"></a> first_name => 'First Name',
<a name="l-75"></a> last_name => 'Last Name',
<a name="l-76"></a> SEX => 'Gender',
<a name="l-77"></a> email => 'Email',
<a name="l-78"></a>
<a name="l-79"></a> },
<a name="l-80"></a>
<a name="l-81"></a>
<a name="l-82"></a>);
<a name="l-83"></a>
<a name="l-84"></a>dance;
</pre></div>