Tag Archives: Ruby On Rails
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 [...]
Posted in Software Also tagged de-duplication, habtm, removing duplicates, ruby, unique index Comments closed
Better Human Race
Better Human Race is the easiest way to raise money for charity. Search with Yahoo, Shop with Amazon, Connect with Facebook, and use our toolbar. I am co-founder and currently the developer of all Better Human Race technology.
Country Seed Data for your Rails App
Never go looking for basic country seed data again:
[
{ :name => 'Afghanistan', :iso_two_letter_code => 'AF' },
{ :name => 'Aland Islands', :iso_two_letter_code => 'AX' },
{ :name => 'Albania', :iso_two_letter_code => 'AL' },
{ :name => 'Algeria', :iso_two_letter_code => 'DZ' },
{ :name => 'American Samoa', :iso_two_letter_code => 'AS' [...]
Scaling a Rails Application – Thinking About the Full Stack
I found a great presentation about scaling web applications that I wanted to share with the world. Enjoy!
Scaling a Rails Application from the Bottom Up
If you enjoyed this post, make sure you subscribe to my RSS feed!
Ruby on Rails – Skipping validations based on where object is created
I ran into an issue today where I wanted to skip validations based on where an object was created. To be more specific, I wanted to validate strictly if a “venue” was created through my web interface but I want to skip validations when importing venues. The reasoning is pretty simple, I want [...]
Posted in Software Also tagged active-record, rubyonrails, skipping-validations, validations Comments closed

Recursive custom to_json in Ruby for arrays of objects or nested objects