set header of ajax request ... the rails way