Add template.rb
Fix application
Fix spec