I'm following the Official tutorial for creating a administration area. I did the first step correctly but when i extend my controller class to CRUD i got an error (Crud not found on the project) + Access denied
when I access to http://localhost:9000/admin/. This is what I did:
Enable the CRUD module for the application In the /conf/application.conf file, enable the CRUD module by adding this line:
module.crud=${play.path}/modules/crud
Import default CRUD routes
In the conf/routes file, import the default module routes by adding this line:
* /admin module:crud
Create the Users controller
package controllers;
public class Users extends CRUD {
}
Restarted play & eclipse
Any suggestion to get the admin area work please ?
Try running this command again
play eclipsify myApp
Thanks for the tip, play eclipsify made the trick but before, i had to resolve dependencies as they are now in the dependencies.yml file:
# Application dependencies
require:
- play
- play -> crud
Just launch "play dependencies myApp" and then eclipsify. Reload your project in Eclipse and it works.
Tested in latest (1.2.3)
Fabien
This could be caused by several issues. Let me outline steps to validate your setup:
module.crud=${play.path}/modules/crud</li>
Comments:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With