Fix scaffold template for Rails 4.