Fixed ERB template deprecation warnings