I have some method that looks like this
def some_method if params["status"] == "good" some action render json: {message: &q