In contrast to RSpec's included allow_value matcher, the attached matcher will also work on associations, which makes it...

The translation method translate and its alias t have bang brothers: translate! and t!. They will raise I18n::MissingTranslationData on...

Consul 0.10.0 now allows multiple power mappings for nested resources. When using nested resources you probably want two power

When two elements with display: inline-block are sitting next to each other, whitespace between becomes a space character.

In order to keep the controllers directory tidy, we recently started to namespace controllers. With the :controller option you can...

apidock.com

When you're writing migrations that do more than changing tables (like, modify many records) you may want some output...

hagenburger.net

An opinion how to implement BEM. I don't agree with all of Nico's choices, but I applaud his...

stackoverflow.com

I had some problems with Git and the file spec/fixtures/ČeskýÁČĎÉĚÍŇÓŘŠŤÚŮÝŽáčďéěíňóřšťúůýž. After pulling the latest commits, it would show that...

Ruby's private keyword might do a lot less than you think. "private" does not apply to class methods defined...

A short browsing revealed that this may be a current firefox issue Current workaround: use another browser

When two classes implement the same behavior (methods, callbacks, etc.), you should extract that behavior into a trait or module...

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...

makandra dev
rubylts.com

RubyLTS is a long term supported fork of Ruby 1.8 that will continue to receive security updates for the forseeable...

developers.google.com

The Google Chrome DevTools allow you to inspect, debug, and analyze the on-device experience with the full suite of...

Box shadows are awesome. Unfortunately they are also very costly to render. You will rarely notice the rendering time on...

web.archive.org

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...

For Capybara, use this step: Then /^"([^"]*)" should be a disabled option for "([^"]*)"(?: within "([^\"]*)")?$/ do |value, field, selector| with_scope(selector...

makandracards.com

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...

We tend to use database transactions as a magic bullet to get rid of all our concurrency problems. When things...