Friday, 21 September 2012

Link: count vs length vs size in Rails

Every now and then I have to remind myself of the differences between "count", "length" and "size" in Rails. I've never found a better source for this than the has_many :through article: count vs length vs size

It's well worth a read, even if you're an old Rails pro.

3 comments:

Dave Aronson said...

The link is 404. :-(

Dave Aronson said...

Aha! The problem seems to be the trailing slash. Remove that and it works.

Taryn East said...

Thanks! Fixed now.