I have been attempting to add some new functionality to an existing grails application. I started by adding a simple domain class through the console:
I then created a simple controller through the console:Code:package com.xfitlog class ProgramType { String name String description static constraints = { name( nullable: false, unique: true ) description( nullable: false ) } String toString() { "${name}" } }
When I execute grails run-app and navigate to the controller page I get this error:Code:package com.xfitlog class ProgramTypeController { static scaffold = ProgramType }
ERROR plugins.DefaultGrailsPlugin - Cannot generate controller logic for scaffolded class class com.xfitlog.ProgramType. It is not a domain class!
Does anyone have any idea what could be causing this in an application that is already up and running?


Reply With Quote