I am coming from razor in asp.net. Usually I would use a [FilePost] for this, but not sure how to do it in grails. Here is the situation
I have a controller
class MyController{
def index{ }
}
I then have a link on index in the form of
<g:link controller="MyController" action="downloadFile">Download</g:link><br>
What I want this to do is take a string (doesn't matter what it is) and I want it to prompt the user to download a text file containing that string. Thanks!