I got this error when running Rails 2.3 tests for Rails LTS. More stacktrace: NoMethodError: undefined method `cache' for Gem...
Geordi is now (partially) tested with Cucumber. Yay! geordi cucumber supports a new @solo tag. Scenarios tagged with @solo...
Using Scenic, you can bring the power of SQL views to your Rails application without having to switch your schema...
You login to a Linux server with a performance issue: what do you check in the first minute? uptime
Once Rails knows a given string is html_safe, it will never escape it. However, there may be times when...
PostgreSQL offers a really handy field type: json. You can store any JSON there, in any structure. While its flexibility...
rack-mini-profiler is a powerful Swiss army knife for Rack app performance. Measure SQL queries, memory allocation and CPU...
The nokogiri gem provides different packages for several platforms. Each platform-specific variant ships pre-built binaries of libxml2, e.g...
E-mails are usually encoded using Quoted Printable. Here is how to decode or encode such strings. You probably know...
When there's a Gemfile.lock in your working directory that you cannot remove by either checkout, reset [--hard], stash, probably...
Lead by a discussion of this issue, I built in a middleware which answers those requests with [400] bad request...
There are many solutions, but a very concise one is this: hash.merge!(hash) do |key, old_value, new_value|
You want to test your 1GE or 10GE internet uplink? We needed to ensure we have full 10GE to the...
When dealing with AR scopes, you can remove conditions, order, etc by using the unscope method. It is available on...
Rails 4 introduced raising an error on pending migrations. This is most annoying when you are crafting a migration but...
What is a Cookie? Google it if you do not know. How are cookies transferred between your browser and...
The asset pipeline is one of Rails' two mechanisms how stylesheets, javascripts and images from your /assets folder are processed...
Some tasks in a web application are better not done live when a user request a page, but in the...
Starting with Rails 4.0, when you get an exception reported via the ExceptionNotification gem, you will only see a very...
Rails 5 will introduce ActiveRecord::Relation#or. On Rails 4 and 3.2 you can use the activerecord_any_of gem...
To safely transport an arbitrary string within a URL, you need to percent-encode characters that have a particular meaning...
Method lookup Understand all the terms in How Ruby method lookup works, in particular: include extend singleton class
Understand how nested attributes appear in the params. See how the Rails form helpers encode the names of nested...
Many of our clients can't or don't want to design their user interfaces. In the absence of a...