tldr; Use git diff -M or git diff --find-renames when you've moved a few files around. Usage
This will list all branches matching your query as input options for git checkout greckout ar 1) ar/cache-api-keys-1098...
If you want to load an SQL dump from an ActiveRecord migration, you might find this to be harder than...
Geordi 1.0 features a command line application geordi, that holds most of Geordi's previous commands. New features
Add gem 'database_cleaner' to your Gemfile. Then: Cucumber & Rails 3+ # features/support/database_cleaner.rb DatabaseCleaner.clean_with(:deletion) # clean once, now DatabaseCleaner.strategy = :transaction...
Some insight into how browser rendering engines work. The article shows how the way you manipulate styles (and the DOM...
Sequel is an awesome ORM such as ActiveRecord. The linked article describes how easily you can implement and use materialized...
Here is a Javascript function reloadUsers() that fetches a HTML snippet from the server using AJAX and replaces the current...
JavaScript objects can have getter and setter functions that are called when a property is read from or written to...
Capybara-screenshot can automatically save screenshots and the HTML for failed Capybara tests in Cucumber, RSpec or Minitest. Requires Capybara...
A CLI for working with Postgres databases. Ships with auto-completion and syntax highlighting.
Rails guide that covers PostgreSQL-specific column types and usages for Active Record. You should especially keep in mind the...
When accepting GIF images, you will also accept animated GIFs. Resizing them can be a time-consuming task and will...
A lot of the advice involves less separations of concerns in your code ("don't use $watch", "don't use...
A very clever hack to parse a structured URL object is to create a element and set its href to...
One of the many useful features of TextMate is autocompletion of words. If I were in TextMate right now, I...
Have you ever opened a file with vim, edited it and when you wanted to save your changes it told...
Rails migrations allow you to use a change method whose calls are automatically inverted for the down path. However, if...
For our production servers we use Passenger as a Ruby application server. While it is possible to use Passenger for...
In addition to the {{ myValue }} two-way binding syntax, since Angular 1.3 there's a one-time binding syntax, prefixing...
Creating records in specs can be so fast that two records created instantly after one another might have the same...
Returning an empty scope can come in handy, e.g. as a default object. In Rails 4 you can achieve this...
class Document < ActiveRecord::Base scope :any_tags, -> (tags){ where('tags && ARRAY[?]', tags) } scope :all_tags, -> (tags){ where('tags @> ARRAY...
To avoid n+1 queries, you want to eager-load associated records if you know you need to access them...