Learn to treat files as an ActiveRecord attribute type, like :string or :integer Research Look at the README for...
Understand what Memoization is and when it can be useful. Understand the @variable ||= computation pattern. Learn how to use...
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...
Learn to read and write Haml. Understand the different attributes syntaxes (curly braces vs. round parentheses) Exercises Convert MovieDB...
JavaScript is a scripting language supported by all browsers. Browsers don't speak Ruby, so if we want to implement...
Understand why we test: Low defect rate without a QA department. Customer acceptance testing can concentrate on new features...
Rails is our web framework. Goals Be able to write a simple Rails application. Understand how Rails talks to the...
makandra is responsible for maintaining about 75 Ruby projects. These projects use a large number of different versions for Ruby...
Ruby is the programming language we use on the backend. Goals After finishing this lesson you should be able to...
Today I ran into this: Invalid gemspec in [/usr/local/rvm/gems/ruby-1.9.3-p194/specifications/ZenTest-4.9.3.gemspec]: Illformed requirement ["< 2.1, >= 1.8"]. You need a newer Rubygems version. Try...
Good article about ruby singleton classes.
Developing complex regular expressions quickly blows my mind. Here are some online regex editors that help you by highlighting matching...
Capistrano 3 is a major rework of the framework and requires several adjustments to your deploy configuration files. The biggest...
Re-creating a complex ActiveRecord scenario quickly without setting up a full-blown Rails app can come in handy e.g...
There are times when you have a chunk of text that you want to do something with, e.g. replace something...
TL;DR Under certain circumstances, dynamically defined symbols may break keyword arguments in Ruby 2.2. This was fixed in Ruby...
It is a common misunderstanding that all [op]=-operators work the same way, but actually they don't. ||= and &&=
When using send_file (for example for attachments of any kind), make sure your application knows the correct mime types...
You can freeze any Ruby object to prevent further modification. If you freeze an ActiveRecord and try to set an...
In RSpec you can tag examples or example groups with any tags you like simply by saying describe ReportCreator, slow...
If you want to grow a Ruby Array, you might find out about #fill but it is not really what...
Code folding is a very useful feature to me. It gives me a quick overview over a file and keeps...
When using threads, you must make your code thread-safe. This can be done by either locking (mutexes) all data...