khany
khany

Reputation: 1187

grails tutorial not finding right view page

I followed the grails tutorial at http://grails.org/doc/latest/guide/gettingStarted.html#creatingAnApplication which works ok.

But when I click the link helloworld.HelloController i get a 404 page with

HTTP Status 404 - /helloworld/WEB-INF/grails-app/views/hello/index.jsp at the top.

I haven't changed anything since installation. I am on Mac Mavericks (10.9)

Anyone know what the problem is?

Upvotes: 0

Views: 364

Answers (1)

Mr. Cat
Mr. Cat

Reputation: 3552

I guess you've missed to change controller, it have look like this:

class HelloController {

    def index() {
        render "Hello World!"
    }
}

Upvotes: 1

Related Questions