#179 Seed Data
Sep 14, 2009 | 7 minutes | Active Record, Rails 2.3
Rails 2.3.4 includes a conventional way to add seed data to your application - no more including it in the migration files.
- Download:
- source codeProject Files in Zip (91.5 KB)
- mp4Full Size H.264 Video (11.3 MB)
- m4vSmaller H.264 Video (7.83 MB)
- webmFull Size VP8 Video (22.2 MB)
- ogvFull Size Theora Video (15 MB)
Foundation
ZURB's Foundation is a front-end for quickly building applications and prototypes. It is similar to Twitter Bootstrap but uses Sass instead of LESS. Here you will learn the basics of the grid system, navigation, tooltips and more.
(11 minutes)
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)
Performance Testing
Learn how to add performance tests that automate benchmark and profile reports. Here I show how to find the bottlenecks to optimize a page. I also show how to compile Ruby with gcdata to get information about memory usage.
(16 minutes)
Ember Part 2
Here we continue our look into Ember.js. First we add a JSON API to persist the entries through ember-data. Then we finish up the project by adding a computed property and a view object.
(14 minutes)
Active Model Serializers
The ActiveModel::Serializers gem can help you build JSON APIs through serializer objects. This provides a dedicated place to fully customize the JSON output.
(10 minutes)