With Rails 4, Concerns have become the “official” solution to the big-models problem. However, there’s a fair amount...
Angular comes with different types of services. Each one with its own use cases. All of these services are singletons...
Do not use .rvmrc files to specify Ruby version and gemset configuration any longer, it's deprecated and not considered...
For all late night coders: The program "redshift" changes your monitors' white balance according to your position on the planet...
After running bundler / gem install I could not load nokogiri lately. It died with cannot load such file -- nokogiri/nokogiri.
Preface: Normally, you would not need this in integrations tests (probably that's why it is so hard to achieve...
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...
An opinion how to implement BEM. I don't agree with all of Nico's choices, but I applaud his...
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...
When two classes implement the same behavior (methods, callbacks, etc.), you should extract that behavior into a trait or module...
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...
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...
Consul 0.9 comes with many new features to optimize powers that only check access to a given record. e.g. Power.current.post...
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...