Helping getting simple CRUD to dance
When I try to execute this app: #!/usr/bin/perl use Dancer; use Dancer::Plugin::SimpleCRUD; # Simple example: simple_crud( record_title => 'Player', prefix => '/player', db_table => 'jugador', editable => 1, ); dance; I get as my result in the browser: Error 404 Unable to process your query -- This is my config.yml file: plugins: Database: driver: 'mysql' database: 'my_main_DB' host: 'localhost' port: 3306 username: 'richard' password: 'mypass' #connection_check_threshold: 10 dbi_params: RaiseError: 1 AutoCommit: 1 on_connect_do: ["SET NAMES 'utf8'", "SET CHARACTER SET 'utf8'" ] log_queries: 1 Any help is greatly appreciated. Thank you
What URL are you going to? I assume http://localhost:3000 ? But more details and logs would help. John
John, Thanks for the reply. That was exactly the problem -- I wasn't using the dull URL. Thanks 2015-07-31 13:05 GMT-05:00 John Stoffel <john@stoffel.org>:
What URL are you going to? I assume http://localhost:3000 ? But more details and logs would help.
John _______________________________________________ dancer-users mailing list dancer-users@dancer.pm http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
whoo hoo! I'm a dancer god now! :-) Richard> John, Thanks for the reply. That was exactly the problem -- Richard> I wasn't using the dull URL. Richard> Thanks Richard> 2015-07-31 13:05 GMT-05:00 John Stoffel <john@stoffel.org>: Richard> What URL are you going to? I assume http://localhost:3000 ? But more Richard> details and logs would help. Richard> John Richard> _______________________________________________ Richard> dancer-users mailing list Richard> dancer-users@dancer.pm Richard> http://lists.preshweb.co.uk/mailman/listinfo/dancer-users Richard> _______________________________________________ Richard> dancer-users mailing list Richard> dancer-users@dancer.pm Richard> http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
participants (2)
-
John Stoffel -
Richard Reina