fixed server side rendering using the rails output_buffer (rails 4.1.4)