Our applications not only need to be functional, they need to be fast. But, to quote Donald Knuth, premature optimization...
Starting with Ruby 1.9, most #each methods can be called without a block, and will return an enumerator. This is...
Method lookup Understand all the terms in How Ruby method lookup works, in particular: include extend singleton class
With ngAnimate, you can easily animate certain events (see directive support). We'll make use of ngClass animations to style...
Understand how nested attributes appear in the params. See how the Rails form helpers encode the names of nested...
Many of our clients can't or don't want to design their user interfaces. In the absence of a...
Your MovieDB gained traction and is now a popular tool among cineasts. This comes with a downside: You noticed a...
We are using the BEM pattern ("Block, Element, Modifier") to structure our CSS in all new projects. We try to...
Built-in matchers Get an overview of all the matchers that are built into RSpec. Play with some of...
I am happy to announce that this information is now available in JSON form at https://ip-ranges.amazonaws.com/ip-ranges.json. The information...
Read the Rails Guide about Active Record migrations Understand why we never use models in migrations. Checkout the repository...
Understand how asynchronous JavaScript works: Read Henning's presentation about asynchronous Javascript (there's also a German video presentation...
As you most likely know validates_uniqness_of :foreign_id does not allow nil values by default.
Use form models to handle this problem Or soften the validation to validates_presence_of :parent
Reason: You very likely have a model that has a delay attribute. You can configure Sidekiq to remove its delay...
Web security basics Einführung in die Web Security 🇩🇪 provides essentials for the topic of this card. Read following chapters:
In tests, it is sometimes useful to create records with specific ids. On PostgreSQL this can cause problems: Usually, PostgreSQL...
Read (or re-read) the following chapters from our book Growing Rails Applications in Practice (it’s in our...
A common task in web applications is to add client-side JavaScript behavior to existing HTML elements.
The migration DSL now supports adding and removing foreign keys. They are dumped to schema.rb as well. At this time...
Learn to treat files as an ActiveRecord attribute type, like :string or :integer Research Look at the README for...
In this card we will learn to write code that scales with a large number of database records. We will...
Understand why we use pagination Exercises Create 7500 movies in MovieDB (hint: Doing it in a single transaction is...
In most of our applications, users have their first and last name stored in separate columns. However, specifying them separately...