All posts

localhost

 

How to do cascading deletes with Ruby on Rails

 

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

Topiclocalhost
TagsRails
Read more

 


 

GIT the funk out!

 

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

Topiclocalhost
TagsGit
Read more

 


 

localhost

 

After letting my personal web site site and gather dust whilst focusing on developing web sites for work it's high time to re-work and modernize... enrich and enthuse on my own site.

Hopefully you stumble upon some information that helps enrich and enthuse.

I've re-worked the legacy mailing lists ...

posted on 2012-05-10 00:00:00 UTC

Topiclocalhost
Tags
Read more