Understand what Memoization is and when it can be useful. Understand the @variable ||= computation pattern. Learn how to use...
Understand why we use pagination Exercises Create 7500 movies in MovieDB (hint: Doing it in a single transaction is...
Learn to read and write Haml. Understand the different attributes syntaxes (curly braces vs. round parentheses) Exercises Convert MovieDB...
Understand at least the following CSS concepts: Classes Selecting elements for styling Basic styling (color, typography, spacing)
Rails is our web framework. Goals Be able to write a simple Rails application. Understand how Rails talks to the...
CSS support in major e-mail clients is horrible. This will give you an overview what you will not be...
Small web application where you can upload an image (PNG, JPEG, GIF) and generate a base64-encoded version of it...
Rails comes with grouped_collection_select that appears to be useful, but isn't. As an alternative, consider the flat...
Note: Making a reverse proxy with nginx is much more straightforward. A reverse proxy is a "man in the middle...
Capistrano 3 is a major rework of the framework and requires several adjustments to your deploy configuration files. The biggest...
Datetime picker that offers: simple UI without a specific framework several of customization options allows custom date/time validations Localization happens...
Starting from Rails 4.0, you can use a special form options helper called #collection_check_boxes. It behaves similar to...
Awesome hack by Tim VanFosson:
See this Railscast. Basically you can simply write views like index.xlsx.erb: ID Name Release Date Price <% @products.each do |product| %> <%= product.id...
jQuery doesn't store information about event listeners and data values with the element itself. This information is instead stored...
Geordi 1.0 features a command line application geordi, that holds most of Geordi's previous commands. New features
Here is a Javascript function reloadUsers() that fetches a HTML snippet from the server using AJAX and replaces the current...
This jasmine plugin helps with testing DOM manipulation in two ways: It gives you DOM-related matchers like toBeVisible() or...
Capybara-screenshot can automatically save screenshots and the HTML for failed Capybara tests in Cucumber, RSpec or Minitest. Requires Capybara...
In the Controller: // Instead of doing this: app.controller('TodoCtrl', function ($scope) { $scope.input = 'ex. buy milk'; }); // Do this: app.controller('TodoCtrl', function...
Clamps (ie. cuts off) an HTML element's content by adding ellipsis to it if the content inside is too...
Using this gem I could get JSON generation from a large, nested Ruby hash down from 200ms to 2ms.
To bind an HTML value to ng-bind-html, you need to mark it as "trusted" first. Among other ways...
In Thunderbird, you can set custom font faces and sizes for reading plain-text e-mails. However, Thunderbird sometimes "randomly...