Details
-
Type:
Improvement
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 2.0.3
-
Fix Version/s: None
-
Component/s: Scaffolding
-
Labels:None
Description
Consider a scaffolded controller, whose views are all scaffolded as well. It is not possible to add an action to the controller that tries to render one of those scaffolded views, e.g.:
class TestController {
def scaffold = true
def testaction = { render( view: "create" ) }
}
This is because ScaffoldingViewResolver's loadView-method requires the current action to be a scaffolded one - I do not understand why.
The workaround is to generate the view - even though there's no real need to.
Activity
- All
- Comments
- Work Log
- History
- Activity
- Git Commits