RailsCasts Pro episodes are now free!

Learn more or hide this

Template Inheritance

#269 Template Inheritance

Jun 06, 2011 | 8 minutes | Views, Rails 3.1
In Rails 3.1 the controller inheritance also applies to the view layer. Here I show how to add an application template which is shared by all views, and a lookup path for overriding templates based on the subdomain.
  • Download:
  • source codeProject Files in Zip (106 KB)
  • mp4Full Size H.264 Video (14.1 MB)
  • m4vSmaller H.264 Video (8.77 MB)
  • webmFull Size VP8 Video (10.3 MB)
  • ogvFull Size Theora Video (19.7 MB)