My service authenticate some data on the user's role basis. If the query params are wrong, i want to exit the code and render some error message as the api response?
render json: 'something' and return
Error that i get it:
"status": 500,
"error": "Internal Server Error",
"exception": "#<NoMethodError: undefined method `render' for AuthenticationService:Class>",
"traces": {
"Application Trace": [