Large projects usually have large test suites that can run for a long time. This can be annoying as running...
Learn Enough Command Line to be Dangerous (it's in our library => Google Drive) CLI tricks every developer should...
Action Mailer Basics and Previews Chapter "Task H1: Sending Confirmation Emails" from Agile Web Development with Rails (in our...
In this card we will learn to write code that scales with a large number of database records. We will...
JavaScript is a scripting language supported by all browsers. Browsers don't speak Ruby, so if we want to implement...
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...
Git is our version control system. Goals Understand why we use git. Learn how to work with your local repository...
Since version 2.6 exception notifier distinguishes between foreground and background sections. The reason is that with background jobs (e.g. methods...
Note: Making a reverse proxy with nginx is much more straightforward. A reverse proxy is a "man in the middle...
sslscan is a nice tool to show details about TLS/SSL connections: ~> sslscan some-host-at.makandra.de Testing SSL server some-host-at.makandra.de on port 443...
Capistrano 3 is a major rework of the framework and requires several adjustments to your deploy configuration files. The biggest...
When using Savon to connect a SOAP API, you may want to use Savon::SpecHelper to mock requests in your...
After adding a vdisk to an ESXi linux guest you will assert that you can't find a new device...
You might wonder about this request in your test.log: Started GET "/__identify__" for 127.0.0.1 at 2015-04-29 18:00...
Starting from Rails 4.0, you can use a special form options helper called #collection_check_boxes. It behaves similar to...
When ending a Selenium test Capybara resets the browser state by closing the tab, clearing cookies, localStorage, etc.
There are some frontends available, but they all suck, are no longer maintained or are hard to install.
You know that ActiveRecord caches associations so they are not loaded twice for the same object. You also know that...
Nested exceptions for Ruby: When you rescue an error and then re-raise your own, you don't have to...
Web applications can be used by multiple users at the same time. A typical application server like Passenger has multiple...
This is useful to kill processes like ruby my-script.rb: pkill -f my-script.rb With great power comes great responsibility.
You can hook into Slack when using Capistrano for deployment. The slackistrano gem does most of the heavy lifting for...
When you want to look up a class for a given factory, do it like this: >> FactoryBot.factories.find('admin').build_class...