Stefan Kendall
Stefan Kendall

Reputation: 67892

Grails UrlMapping 404

I have this:

static mappings = {
   "/a/b/$id/stuff"(controller: "stuff", action "action1" )
   "/a/b/$id/stuff/$stuffId"(controller: "stuff", action "action2" )
   "/a/b/$id/stuff/$stuffId/c"(controller: "stuff", action "action3" )
}

I can hit action1 and action2, but I can't hit action3, as it returns a 404.

What's going on?

Upvotes: 2

Views: 340

Answers (2)

Stefan Kendall
Stefan Kendall

Reputation: 67892

def method(){

}

will not work.

def method = {


}

WILL work.

Upvotes: 1

rdmueller
rdmueller

Reputation: 11062

have you checked the code of your view? I guess if it can't compile, you'll get a 404. At least, that's what I experienced.

Upvotes: 0

Related Questions