Fix deprecation warning in ERB template