likes working on rails. Only works once between page refreshes