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
| Topic | localhost |
|---|---|
| Tags | Rails |
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
| Topic | localhost |
|---|---|
| Tags | Git |
Here's a timezone drop-down select for HTML ready to copy/paste into your code.
| Topic | Sandbox |
|---|---|
| Tags | Html, Snippits |
Learn how to redirect to another page using Javascript.
window.location.href = "http://xyz.com/page";
If you want to open the page in a new window use:
window.open("http://xyz.com/page");
Nice and simple.
posted on 2012-06-01 00:00:00 UTC
| Topic | Sandbox |
|---|---|
| Tags | Javascript |
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
| Topic | Sandbox |
|---|---|
| Tags |