Update template.rb

Extending template handler to include rails 4