You know those helper methods that just render some HTML but look weird because of content_tags all over the...
We have a new gem Minidusen which extracts Dusen's query parsing and LIKE query functionality. Minidusen can no longer...
Improve geordi cucumber: Only attempt @solo run when the specified files contain the @solo tag, skip @solo run if any...
Capistrano is by default configured to exclude the gems of the groups development and test when deploying to the stages...
You want Spring for super-fast binstubs like bin/rails or bin/rspec which avoid Rails boot time. You want parallel_tests...
Sometimes you might need to nest a git-project inside another git-project. The right strategy is to use submodules...
Sometimes you want to test migrations with production or staging data. Dumping single tables makes sense if a complete dump...
Angular directives with isolate scopes have three different variable binding strategies, of which one is =. Example: # HTML # Coffeescript @app.directive 'panel...
Isolate scopes offer three kinds of variable binding. One of them is &, allowing to bind a property of the isolate...
If you need to modify (e.g. add 2px) a Sass variable that defines multiple values as one (e.g. for short...
To simulate Rails' to_sentence in your JavaScript application, you can use these few lines of CoffeeScript code: joinSentence = (array...
When you're nesting setTimeout(f, 0) calls, your browser will silently increase the delay to 5 milliseconds after the...
Resources Rails Guide: Internationalization API Guide to localizing a Rails application Locale-aware helpers in ActionView::Helpers::NumberHelper
By convention, common protocols use a defined port, like 80 for HTTP or 443 for HTTPS. You can use nmap...
When building a web application, one is tempted to claim it "done" too early. Make sure you check this list...
...The and tags both come with some non-default behavior that you know from other tags.
You can define methods using def or define_method. In the real world, there is no performance difference.
Ruby 2.3.0 has been around since end of 2015. It brings some pretty nice new features! Make sure to read...
All new browsers support the new object-fit CSS property. It allows to specify how an element behaves within its...
Ever needed to use a global variable in Rails? Ugh, that's the worst. If you need global state, you...
Reading user input in console applications is usually done using Kernel#gets. Stubbing that can be a bit hairy.
When testing Ruby code that prints something to the terminal, you can test that output. Since RSpec 3.0 there is...
IE has a "Compatibility Mode" for old browsers. You can keep IE from offering it (and fix some other things...
The linked site hosts a simple test. It shows two images with narrow vertical/horizontal lines. The more they resemble each...