Is that return necessary? Let’s say it’s in the middle of an action.
render(contentType:'text/json', text: ['success': true] as JSON)
return
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.
If you don’t return, any code after
renderwill also be executed, which is often not what you want, e.g.Of course, if you use this style instead, there’s no need to return
If an action only has one exit point, there’s no need to return after
renderJust remember that the code after
renderwill be executed if you don’t return.