Unfortunately, Web APIs haven’t provided the functionality to copy text to the clipboard through JavaScript, which is why visiting...
Spreewald comes with a selector_for helper that matches an English term like the user's profile into a CSS...
On Ruby 1.9+, standard ruby character classes like \w, \d will only match 7-Bit ASCII characters: "foo" =~ /\w+/ # matches...
If you'd like to preview the crontab that whenever will deploy, run the following: bundle exec whenever
Each time thin boots, it prints a boot message : Thin web server (v1.6.3 codename Protein Powder) Maximum connections set to...
tig is a command line explorer for Git that is just awesome. Install via apt-get or brew. Handy commands...
Jasmine comes with two matchers that test for equality. The first is toBe: expect(first).toBe(second) toBe passes when...
The easiest way to freeze or travel through time in a Jasmine spec is to use the built-in jasmine.clock...
If you are writing any amount of Javascript, you are probably using closures to hide local state, e.g. to have...
In Capistrano 2, directories in shared_children used to be symlinked to the shared directory during the finalize_update task...
The team is responsible for building great software—that’s it. It’s the only thing the team is responsible...
Your after_commit callbacks will not know about changes, as Rails discards them when committing. The linked article shows a...
Large projects usually have large test suites that can run for a long time. This can be annoying as running...
CSS (+ some Javascript) framework, implementing Google's material design for static web pages. Can be used for plain websites without...
In most of our applications, users have their first and last name stored in separate columns. However, specifying them separately...
If you need to follow links, click buttons, etc. using Capybara inside an , you can do it like this:
When working with ActiveType you will often find it useful to cast an ActiveRecord instance to its extended ActiveType::Record...
Note: ActiveRecord::Base#becomes has a lot of quirks and inconsistent behavior. You probably want to use ActiveType.cast instead.
Starting from 4.1, Rails automatically detects the inverse of an association, based on heuristics. Unfortunately, it does not seem to...
When you register a delegated event using on (or the deprecated delegate / live), it is somewhat hard to manually trigger...
Capistrano 3 is a major rework of the framework and requires several adjustments to your deploy configuration files. The biggest...
If you have FactoryGirl traits like this: factory :movie do title 'Sunshine' year 2007 trait :vintage do year 1951
Please don't use the horrible datetime_select helper. It has a terrible UI. Always prefer to use a visual...
Datetime picker that offers: simple UI without a specific framework several of customization options allows custom date/time validations Localization happens...