While Grails has several tags to generate either resource links or anchor tags, what about a plain href? Say I’m coding some AJAX functions on my own and I want to say something like
$.post("<g:href controller='mycontroller' action='update' />');
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I think createLink is what you’re looking for: