Custom matchers are a useful RSpec feature which you can use to DRY up repetitive expectations in your specs. Unfortunately...
Shared example groups are a useful RSpec feature. Unfortunately the default directory structure generated by rspec-rails has no obvious...
In Rails 5 you can say: ApplicationController.render( :template => 'users/index', :layout => 'my_layout', :assigns => { users: @users } ) If a Request Environment is...
RubyLTS is a long term supported fork of Ruby 1.8 that will continue to receive security updates for the forseeable...
The Google Chrome DevTools allow you to inspect, debug, and analyze the on-device experience with the full suite of...
Extends the Chrome WebInspector so you can debug AngularJS applications and hunt down performance issues. It's really, really good...
Box shadows are awesome. Unfortunately they are also very costly to render. You will rarely notice the rendering time on...
Capistrano 2 brings the shell command which allows you to run commands on your deployment targets. There is also invoke...
When you have files in your .gitignore they won't be considered for changes, but still you might want to...
Simply give the select helper an option :disabled, passing either a single value or an array. You need to specify...
So you're hunting down a regression (or just a bug) and want to use git bisect to find out...
Exception notifications contain a lot of information: Backtraces, HTTP headers, etc. exception_notification tries its best to format this wall...
The new exception_notification has awesome options like :ignore_crawlers => true and :ignore_if => lambda {...
...}. These options should be helpful...
We tend to use database transactions as a magic bullet to get rid of all our concurrency problems. When things...
Sometimes in the course of development you may need to mock HTTP responses. This is a simple service to return...
Most people don’t schedule their work. They schedule the interruptions that prevent their work from happening.
Consul 0.9 comes with many new features to optimize powers that only check access to a given record. e.g. Power.current.post...
For websites that don't do JavaScript rendering on the client, it's best practice to put script tags at...
The linked page lists and explains global Ruby "dollar" variables, such as: $: (load path) $* (ARGV) $? (Last exit status) $$ (PID)
Ruby 1.9 brings a shorter way to define lambdas using the -> operator: twice = -> (x) { 2 * x } twice.call(5) # => 10
The cookies object in your controllers and views is a ActionController::CookieJar and even though that class inherits from Hash...
$RANDOM on bash returns a random integer between 0 and 32767. echo $RANDOM 9816 echo $RANDOM 30922
I recently encountered the error above when I was running selenium tests. Thanks to a post on stackoverflow I found...
Use the click method on the DOM element: let link = document.querySelector('a') link.click()