Easy and auto-magically done with some Rails goodness:
class User < ActiveRecord::Base has_many :user_friends, :dependent => :destroy end
Deleting a User will then perform a cascaded delete of the dependent user_friends when the User is destroyed.
posted on 2013-04-25 00:00:00 UTC
So you've changed some code, but aren't sure about it and would like to have some peers take a look without affecting the existing stream of development?
The command-line is your friend.
git checkout -b 2bshared (create a local branch and switch to it)
git status (take a...
posted on 2013-01-27 00:00:00 UTC
Here's a timezone drop-down select for HTML ready to copy/paste into your code.
window.location.href = "http://xyz.com/page";
If you want to open the page in a new window use:
Nice and simple.
posted on 2012-06-01 00:00:00 UTC
If you read the terms on practically any website, product or service these days you're agreeing to a forfeit a ridiculous number or rights and freedoms, entering into binding contracts and possibly agreeing to defend and pay their own legals costs.
Have you read the terms on Pintrest, Facebook and other h...
posted on 2012-05-28 00:00:00 UTC