Can I create my own scaffolding resource i.e. add presentation model purposes 'controller'

StackOverflow https://stackoverflow.com/questions/18714437

  •  28-06-2022
  •  | 
  •  

سؤال

Due to using Grails app also as open-dolphin server, I'd like to be able to scaffold presentation model from domain classes. Since I need to put them into shared package to include them also to client, putting them in standard controller scaffold source is not suitable for me.

So, the question is: Is it possible to add extra scaffolding source beside controller, edit, create, show, etc?

هل كانت مفيدة؟

المحلول

Of course you can, just do "grails install-templates" and add new actions to the scaffolded controller: http://grails.org/doc/latest/guide/scaffolding.html

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top