edited for rails erb