Reputation: 75
Grails Version: 3.2.7
Groovy Version: 2.4.7
JVM Version: 1.8.0_111
I created 2 controllers and 2 domains
First domain:
package beermembers
class First {
String first
static constraints = {
}
}
Seconf domain:
package beermembers
class Second {
String second
static constraints = {
}
}
First controller:
package beermembers
class FirstController {
static scaffold = First
def index() {
}
}
Second controller
package beermembers
class SecondController {
static scaffold = Second
def index() {
}
}
I'm starting application and thought that will be
http://localhost:8080/first/index with CRUD for First domain
http://localhost:8080/second/index with CRUD for Second domain
but it shows CRUD for First on both urls.
Could you explain please why SecondController shows First domain information?
Upvotes: 0
Views: 191
Reputation: 12228
A newer version of the scaffolding plugin was released that is compatible with Grails 3.2.7+
Use version 3.3.1 of scaffolding.
Here is the relevant issue https://github.com/grails/grails-core/issues/10520
Upvotes: 2