Using ajax with rails application.