You have multiple options: Just don't have a type column. All STI magic will be disabled automatically.
In order to clone a git repository including all branches and tags you need to use two parameters when cloning...
When you need to find out in which kind of spec you are during run-time, it's definitely possible...
Sometimes you need a piece of code to do something different for specs than for features. If you don't...
Sometimes you want git to ignore certain files that appear on your machine. You can do this in 3 ways...
When your site is on HTTPS and you are linking or redirecting to a HTTP site, the browser will not...
git shortlog -s -n [commit-range] -n, --numbered Sort output according to the number of commits per author
Note: These instructions are for a quick per-project setup and may require you to change code. If you generally...
Option 1: Creating a self-signed certificate with the openssl binary As igalic commented on this gist. openssl req -new...
ActiveRecord translations live in locale.activerecord. ActiveModel translations live in locale.activemodel. To use the same translations for both, use YAML references...
Getting a regular expression from a string in JavaScript is quite simple: new RegExp('Hello Universe'); # => /Hello Universe/
Issue this command: sqlite3 ~/Library/Application\ Support/Dock/*.db "DELETE from apps WHERE title='APP_NAME';" && killall Dock This tells sqlite3 to...
This trick might be useful to implement more complicated directives in AngularJS. I needed it to do drag'n'drop...
When HTTP clients make an request they can define which response formats they can process. They do it by adding...
Authentication is hard: there are many edge cases, and most users (including yourself) usually only go the "happy path" once...
We have often felt the pain where our models need to serve too many masters. E.g. we are adding a...
In the following example the method update_offices_people_count won't be called when office_id changes, because it...
When you want to do a git diff but do not care about the full diff and just want to...
Create a directory mkdir ~/.aws Initialise git repository cd ~/.aws && git init Create a git branch with a name you...
You can detect city and country from an IP address by using the GeoLite database. This is a flat file...
You probably haven't configured version control for your project. Go to Project Settings / Version Control and set the director...
We ran into trouble when adding additional compute units to our railscomplete Hosting environment lately. VM-instances on the new...
When you download or upgrade RVM it has a hardcoded notion which patch level it considers to be "1.9.3".
Awesome battle report from Pinterest trying to scale their setup using different approaches. When you push something to the limit...