test ajax with ruby