CTRL + SHIFT + ALT + N : Search for any symbol in your application, like CSS classes, Ruby classes, methods, helpers etc...
In tests, it is sometimes useful to create records with specific ids. On PostgreSQL this can cause problems: Usually, PostgreSQL...
The migration DSL now supports adding and removing foreign keys. They are dumped to schema.rb as well. At this time...
Large projects usually have large test suites that can run for a long time. This can be annoying as running...
Understand the differences between git diff and git diff --staged (or git diff --cached) Understand the difference between git...
Learn Enough Command Line to be Dangerous (it's in our library => Google Drive) CLI tricks every developer should...
In this card we will learn to write code that scales with a large number of database records. We will...
Read the following chapters from The Pragmatic Programmer, anniversary edition (in our library): Chapter 1, Topic 3: Software Entropy...
Rails is our web framework. Goals Be able to write a simple Rails application. Understand how Rails talks to the...
If you need to follow links, click buttons, etc. using Capybara inside an , you can do it like this:
In my RubyMine I have recorded two macros for debugging and linked them to some keyboard shortcuts. Since I believe...
Rails comes with grouped_collection_select that appears to be useful, but isn't. As an alternative, consider the flat...
There is no such thing as a "default order" of rows in database tables. For instance, when you paginate a...
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...
Please don't use the horrible datetime_select helper. It has a terrible UI. Always prefer to use a visual...
When you want to UPDATE a table with information from an associated table, you can JOIN the associated table into...
Several Rails migration methods accept index: true as an option to create an index. In some cases (like #add_column...
There are times when you have a chunk of text that you want to do something with, e.g. replace something...
Code folding is a very useful feature to me. It gives me a quick overview over a file and keeps...
Starting from Rails 4.0, you can use a special form options helper called #collection_check_boxes. It behaves similar to...
There are some frontends available, but they all suck, are no longer maintained or are hard to install.
See this Railscast. Basically you can simply write views like index.xlsx.erb: ID Name Release Date Price <% @products.each do |product| %> <%= product.id...
The easiest way to detect touch-capable browsers is to check for the presence of touch events. It is no...