This method will remove automatically installed packages that no other packages depend on any more. This, of course...
When adding a new field to your model's database table, don't set any defaults in the database.
Web applications can be used by multiple users at the same time. A typical application server like Passenger has multiple...
Specify these gem versions in your Gemfile: gem 'cucumber', '~> 1.3.0' gem 'cucumber-rails', '= 0.3.2' # max version for Rails 2
For my computer science bachelor's thesis I programmed and evaluated a CLI Test Case Prioritization (TCP) tool for makandra...
When your code does not behave as expected, you can use a debugger statement ("breakpoint") at any point in your...
PostgreSQL can cosplay as a full-text search engine. It doesn't have the features or fidelity of ElasticSearch or...
"Open-source software (OSS) is great. Anyone can use virtually any open-source code in their projects." Well, it depends...
Note: If you are currently working with Ruby 1.8.7 or 1.9.3, we recommend to upgrade to Ruby 2.1 first. From...
Sometimes I ran across a GitHub merge request of a gem where it was not completely obvious in which version...
Cucumber up to version 2 had a neat feature called Step Argument Transforms which was dropped in favor of Cucumber...
This is a personal post-mortem analysis of a project that was mainly build to provide a REST API to...
We will be installing rbenv and ruby-build from our own fork, not from the Ubuntu sources. Installing rbenv
Our old solution for cronjobs, the "craken" plugin, is no longer maintained and does not work on Rails 3.2+.
Rails applications and ruby gems should have a README that gives the reader a quick overview of the project. Its...
Let's say you have a gem which has the following module: module SuperClient def self.foo 'Foo' end
You can define methods using def or define_method. In the real world, there is no performance difference.
Microsoft Exchange service administrators can enable Exchange Web Services (EWS) which is a rather accessible XML API for interacting with...
Using this gem I could get JSON generation from a large, nested Ruby hash down from 200ms to 2ms.
Rails ships with two separate build pipelines: Sprockets ("asset pipeline") and Webpacker. Webpacker has many more moving parts, but allows...