Rendering in rails is slow