scaffolding icon indicating copy to clipboard operation
scaffolding copied to clipboard

No view support apparently generated for adding an entity to a 'hasMany' association

Open KymPohl opened this issue 8 years ago • 0 comments

With a simple Book / Author example it seems that the scaffolded 'create new author' view is not rendering a provision for adding a 'book' (created on the spot, or already existing in the system) to the 'hasMany books' association. I'm using Grails 3.1.2 with scaffolding plugin 3.2.1 . Here is my use case:

// Model class Book { String title }

class Author { String name static hasMany = [books: Book] }

// Controllers class BookController { static scaffold = Book }

class AuthorController { static scaffold = Author }

I certainly might be missing something but with such a straightforward example I'm wondering if this might be a bug with either the scaffolding plugin, grails, or the interaction between the two...

KymPohl avatar Mar 12 '16 01:03 KymPohl