#123 Subdomains
Learn how to unleash the full potential of subdomains with the subdomain-fu Rails plugin in this episode.
- Download:
- source codeProject Files in Zip (110 KB)
- mp4Full Size H.264 Video (27.3 MB)
- m4vSmaller H.264 Video (18.8 MB)
- webmFull Size VP8 Video (54.6 MB)
- ogvFull Size Theora Video (39.3 MB)
What's New in Rails 4
Rails 4.0 is still unfinished, but it is shaping up to become a great release. Here I show how to setup a new Rails 4.0 (edge) application and walk through many of its new features.
(20 minutes)
Multitenancy with PostgreSQL
PostgreSQL Schemas can help create a multi-tenant app by keeping data separate at the database layer. Integrating with migrations can be tricky though, so watch this episode for the full details.
(11 minutes)
Multitenancy with Scopes
A multi-tenant application can be difficult to implement because the data for each tenant must be completely separate. Here I show how to do this using subdomains and default scopes in Active Record.
(12 minutes)
Subdomains (revised)
In Rails 3.1 subdomains are easier than ever to use. Here I show how to route a subdomain to a specific controller action, generate links, nest resources, and more.
(7 minutes)
Template Inheritance
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.
(8 minutes)