-
-
I like solving social problems with web and mobile technology. I also like playing funk music. README
-
iPhone Apps
-
Read About
ActionScript3 adobe flex Ajax apache authentication bash csrf custom devise Facebook API flash flex iphone javascript jquery linux marketing Music myspace MySQL objective c os x passenger Photoshop php plugin rails rounded rounded corners rspec ruby rubyonrails Ruby On Rails Software SQLite tap testing time_select user-permissions user-roles validation widget wordpress XHTML/CSS XML

Deduping join data in ruby based on multiple attributes
In the past I created an app using Rails built in HABTM and no unique index on the join tables. I’m more into the has_many :through choice today.
In order to migrate my data with a unqiue index, I had a bunch of de-duping to do. It was a bit trickier than usual because I had to de-dupe based on multiple attributes. I wrote a quick class in ruby to take of this and decided I should share it. Let me know if you have a better way. I sorta went with the fastest because I’m up against a deadline right now.
If you enjoyed this post, make sure you subscribe to my RSS feed!