How to destroy an array of objects with one line of code in Ruby on Rails


~10 years ago by Paul Sturgess on paulsturgess.co.uk articles.
The easiest way is to collect all the id's of the objects you want to delete and then use the destroy method on the model of those objects. Model.destroy...

bleak_house 3 tells you your leaks


~10 years ago by Evan Weaver on Snax.
BleakHouse 3: ... Frame 55 finalized: 854 births, 1149 deaths, velocity 0.74, population 221011 Frame 56 finalized: 16342 births, 15881 deaths...

Site update


~10 years ago by Paul Sturgess on paulsturgess.co.uk articles.
I try to avoid posting anything other than Ruby on Rails related posts but I thought I'd better mention the changes I've just uploaded to this site. Essentially...

Cleaning up the campsite


~10 years ago by Manfred on Operation0.org posts.
Don’t think anyone has abandoned the campsite, we’re just cleaning it up. Zimbatm is cleaning up the bugs in Trac so we can work up to a new...

Calling dynamic methods in Ruby on Rails


over 10 years ago by Paul Sturgess on paulsturgess.co.uk articles.
To utilise dynamic method names in Ruby on Rails you can use Ruby's send method to pass a message to an object. For example: ["foo", "bar"].each do |method...

a short play


over 10 years ago by Evan Weaver on Snax.
...

related in spirit


over 10 years ago by Evan Weaver on Snax.
In the interests of there being less business all up in here, I have created a crazy blog system. Related in spirit to: e, Hobix, Blosxom. The HTML is...

22nd - 28th July 2007


over 10 years ago by Ruby Weekly News on Ruby Weekly News.


15th - 21st July 2007


over 10 years ago by Ruby Weekly News on Ruby Weekly News.


Using ruby methods map and zip along with Rails extended finds


over 10 years ago by Paul Sturgess on paulsturgess.co.uk articles.
This is a combination of techniques that I find useful when you need to output related data from various database tables in the same list. In this example...