I spent hours yesterday trying to work out why a model in my uni project Mwungo, wasnt being updated correctly. Turns out it was a typo i had. Two of my database columns were named incorrectly. Very annoying. Part of the problem, in my opinion, is that the polymorphic associations rails has, which allow you to link up one model to many different models (for example, you can have an address model, and link that to a users model (users have many addresses), and also to a company model (companies have one address maybe)), dont seem to give an error if you misname the two fields you need to include for the relationship, the {relationshipname}_id and {relationshipname}_type fields. So when i was trying to create a new record, rails wasnt setting those values and the associated polymorphic model wasnt associated . Anyway. Glad i noticed reasonably early today. I guess i should report this as a bug now.
Monthly Archives: March 2008
What were they thinking?
Some great clips of people crashing vehicles, falling over, generally being idiots. It’s a bit You’ve-been-framed-ey, but funny all the same.
Carnage
I was hired to photograph the huge student pub crawl Carnage, in Southampton and Manchester the other week. Good fun night. Lots of students (around 1000-2000), go from bar to bar, ending up at a massive club, all with pre-purchased carnage t-shirts which they then to “enhance” with permanent markers during the course of the night. Much customisation of them goes on before the event too, it seems, with girls cutting bits off here and there to show as much of their breasts as possible, and guys just… well.. ripping them to shreds it seems? apparently it’s the carnage thing. Anyway, tiring night. 7 hours on my feet, taking photos of extremely inebriated people. Good fun though. good fun. I would do it again.








