Fix template for compat with Rails 4