working on transitioning from php to erb