In a nutshell: return statements inside blocks cause a method's return value to change. This is by design (and...
If you get errors from your development WEBrick that contain unicode salad, you are probably requesting the page via SSL...
A print stylesheet is easy to create. Choose a font suited for paper, hide some elements, done. Unfortunately print stylesheets...
This article describes how to reset MySQL's or MariaDB's root password on your workstation. It's meant for...
Every now and then, Java is subject to security issues where code can break out of Java's sandbox and...
When committing, you should always check the diff of your changes so you don't include any leftovers or irrelevant/bad...
Sometimes you need to look at the filter chain in specs. You can do it like that on Rails 2...
So your Cucumber feature sometimes dies with this exception: Modal Dialog Present (Selenium::WebDriver::Error::UnhandledAlertError) As a seasoned Selenium...
In Selenium features the server and client are running in separate processes. Therefore, when mocking time with a tool like...
Explanation of the "bootstrap 2" base CSS. Contains information about: Typography Code Tables Forms Buttons Icons
So you got this error, even though your Gemfile bundles mysql2: !!! Missing the mysql2 gem. Add it to your Gemfile...
A number of issues concerning Sass/SCSS autocompletion and syntax highlighting were submitted as a feedback for RubyMine 4.5. Web development...
assignable_values now lets you define a secondary default that is only used if the primary default value is not...
Consul 0.4.0 comes with some new features. Dependencies Consul no longer requires assignable_values, it's optional for when you...
paper_trail is an excellent gem to track record versions and changes. You almost never want to reimplement something like...
The will_paginate gem will show a default of 30 records per page. If you want to test pagination in...
Sometimes, you may want to open up a second database connection, to a read slave or another database. When doing...
This will make MySQL log all received queries so you can see for yourself what happens on the database level...
Makandra cards will auto-detect the language used for syntax highlighting. This auto-detection sometimes fails for short code snippets...
When you use method_missing to have an object return something on a method call, always make sure you also...
When refactoring a sequence of steps to a new, more descriptive step, you can use the steps method and Ruby...
In Rails 3.1+, instead of defining a separate up and down method you can define a single method change:
Updated the card with our current best practice (shared app code and specs via symlinks).
Sometimes you need to remove high Unicode characters from a string, so all characters have a code point between 0...