Reputation: 1019
I installed a plugin and want to scaffold a domain class from the plugin. For my project-own domain classes Foo
I add scaffold = true
to FooController
. If I try this it shows up in the list of controllers but there are no views generated (404 error). I imported the class inside the controller.
Any idea what is wrong or how to fix this?
Upvotes: 2
Views: 1284
Reputation: 3011
If you are the plugin editor, you should be able to add the scaffolding plugin in your BuildConfig.groovy
compile ":scaffolding:2.0.1"
then should be to run your generate or generate-all commands against the domain class to have the controller and/or views created.
Now If you do do not have access to the plugin source, from the app that uses the plugin that has the domains that you want to scaffold I do not think you will be able to. You will have to code that yourself.
Upvotes: 0
Reputation: 1376
Try to scaffold using class name:
static scaffold = DomainClassFromPlugin
Upvotes: 2