In rails, can I access response.body in a action before it returns?
Say I want to do some final string replacements before it returns, can I get access to response.b
You can simply overwrite rails render function in a controller, like this:
def render *args, &block super response.body.gsub!(/blah/,'') end