How can I create a simple testing/experimenting file in grails? I tried creating a TestController.groovy file in the /controllers folder, and then tried going to /project/Test/ but I get a 404.
In my TestController.groovy:
package aust
class TestController {
def index = {
render {'Winning!... finally'}
}
}
Have you setup a route to it correctly in your routing file? Also, you need to create an action in your controller, like
index. Then, you should create a View in the Views folder, liketext\index.gsp. I am a newbie too, but the documentation is great for Grails. Good luck.