rails application using ajax