Jeff T
Jeff T

Reputation: 21

Grails not rendering alternate views

Is anyone else having problems getting grails 3.2 to render alternate views? I can’t even get a simple example to work. No stack trace either. Just won’t render the view. I am using the web profile.

def one(){
  render( view:'two')
}

def two(){
}

Upvotes: 0

Views: 38

Answers (1)

Jeff Scott Brown
Jeff Scott Brown

Reputation: 27255

Does anyone else having problems getting grails 3.2 to render alternate views.

I am not.

See the project at https://github.com/jeffbrown/alternateview

https://github.com/jeffbrown/alternateview/blob/b5560f627eee03d19ff6a0b4ff9e3093800e4d05/grails-app/controllers/demo/DemoController.groovy

package demo

class DemoController {
    def one(){
        render( view:'two')
    }

    def two(){
    }
}

Both of those appear to work.

Upvotes: 1

Related Questions