This card shows you how to format a card's content using Markdown. We use the Commonmarker interpreter, so here...
Undeterministically I got a nil error on saving the object caused by the random order of hash elements of the...
Let's say you need to revert a migration that happened a while back. You'd create a new migration...
Instead of showing you two lines for each change, Git allows you to highlight changes in a line explicitly:
When updating WebMock, be prepared that your specs may send real requests into the depths of the internet unless you...
If your project manager wants to do gatekeeping on a project, as a developer you need to follow the following...
If you're responsible for gatekeeping in a projects, here is a guide, what to do. In order to reduce...
When your model is using a callback like before_save or before_validation to calculate an aggregated value from its...
will_paginate triggers a database query to determine the total number of entries (i.e. to let you display the number...
Delegating methods to other objects is often helpful but the syntax of both def_delegators and def_delegator is a...
You probably know about the possibility to tag scenarios in Cucumber to run your own piece of code before the...
In MySQL comparing zero to a string 0 = "any string" is always true! So when you want to compare a...
When your gems complain about invalid gemspecs and illformed requirements, it is most probably an error resulting from the transition...
You can change the color for text selection via CSS, using the ::selection and ::-moz-selection pseudo-elements.
Don't you just hate to write Cucumber path helpers to be able to say this?
Copy the attached file to config/initializers/indent_string.rb and you can say "foo".indent(4) # " foo" Note you will find many simpler...
You can now add code blocks without indentation, by using triple-backticks: ``` Code block goes here. ```
When deploying code with Capistrano (depending on your configuration) at some point Capistrano tries to check out code from your...
Imagine you have a piece of code that tries to send a request to a remote server. Now the server...
If your git index for some reason becomes invalid, no need to worry. Your index is corrupt when you see...
You can use text-overflow to truncate a text using CSS but it does not fit fancy requirements.
Possible Reason 1: parallel_tests - running more processes than features If you run old versions of parallel_tests with more...
Most of the JavaScript snippets have code that manipulates the DOM. For that reason dom manipulating javascript code should have...
Saying git diff only shows unstaged changes relative to the index (or HEAD if the index is empty, alternatively any...