bleedingwolf / Ratpack

A micro web framework for Groovy
Other
210 stars 4 forks source link

Delegates broken #3

Closed raymyers closed 14 years ago

raymyers commented 14 years ago

It looks like the change to urlparams broke delegates.

For instance, the following throws "groovy.lang.MissingMethodException: No signature of method: hello.render() is applicable"

hello.groovy:

import com.bleedingwolf.ratpack.Ratpack import com.bleedingwolf.ratpack.RatpackServlet

def app = Ratpack.app {

    get("/") {
        render("index.html")
    }
}

RatpackServlet.serve(app)
justinvoss commented 14 years ago

The delegate wasn't broken, it's just that render required the second parameter. However, as of commit fca556e311fb64e2fea1, it's optional.