#133 Capistrano Tasks
Oct 27, 2008 | 8 minutes | Tools, Deployment
Do you know how to make Capistrano tasks? See how to change default deployment behavior with custom tasks in this episode.
- Download:
- source codeProject Files in Zip (1.14 KB)
- mp4Full Size H.264 Video (11.2 MB)
- m4vSmaller H.264 Video (8.38 MB)
- webmFull Size VP8 Video (25.7 MB)
- ogvFull Size Theora Video (16.3 MB)
Batch API Requests
Here I demonstrate how to perform bulk API operations though a single request using Rack middleware. This is great if you need to trigger multiple actions at once such as if the user goes offline.
(18 minutes)
Autocomplete Search Terms
Learn how to add autocompletion to a search form and improve performance using Rack middleware, caching and switching from SQL to Redis.
(17 minutes)
STI and Polymorphic Associations
Single Table Inheritance (STI) can help organize branching logic into separate classes, but a polymorphic association may be a better fit if there are unique database columns.
(14 minutes)
Guest User Record
Instead of presenting a sign up form to the user, consider creating a temporary guest record so the user can try out the application without filling in their information up front. They can then become a permanent member afterwards.
(9 minutes)
Turbolinks
Turbolinks can make your Rails app feel faster by using JavaScript to replace the page content when clicking a link. It will be default in new Rails 4.0 applications, but here I show how to use it in Rails 3 and mention some of the gotchas.
(7 minutes)