Reputation: 29577
Grails 2.3.6 here. I went into myapp/grails-app/controllers
and manually added a new WidgetController.groovy
class:
class WidgetController {
def fizz() {
redirect(url: "http://google.com")
}
}
Then I run my Grails app locally, and when I go to http://localhost:8080/myapp/widget/fizz
I just get my custom "page does not exist" error page. No errors in the logs.
Note: I did not use the grails create-controller Widget
command; I just added a new file manually. What is going on here and what can I do to fix it?
Upvotes: 0
Views: 247
Reputation: 1126
Try to add a blank fizz.gsp page to your view/widget and it will work.
Upvotes: 2