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.
When you want to look up a class for a given factory, do it like this: >> FactoryBot.factories.find('admin').build_class...
To achieve this goal you have to setup the session store like the following example: MyApp::Application.config.session_store( :cookie_store...
This guide shows how to create an AngularJS application that consumes more and more memory until, eventually, the browser process...
I've pushed an update to Cucumber factory that simplifies working with FactoryGirl factories. Say you define a factory with...
If you get this error (probably because you want to load some modules): # modprobe xt_comment FATAL: Could not load...