I have a controller method that is a little something like this:
def suggestions
# Stuff
render :json => {"success" => true'}
end
Is it possible to run a method after the render response? I'd like to not hold up the frontend if possible.
Thanks
Yes, the method will continue to execute until it reaches the end. The only issue you really need to watch out for is accidentally calling render again. You may only call render once.