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
Jeff Brown
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Component/s | Controllers [ 10414 ] | |
| Component/s | Scaffolding [ 10423 ] | |
| Priority | Major [ 3 ] | Minor [ 4 ] |
| Issue Type | Bug [ 1 ] | Improvement [ 4 ] |
I would argue that this is a bug with the scaffolding, and not an improvement. To me, when something doesn't work as expected, it's a bug, especially in a framework that is build around a strong sense of Least Surprises.