update to rails4
add batch_request with custom request