update rails helper