Topic: counting rows.
having a little issue with counting DB rows.
okay I'm trying to figure this out. its a little tagging thing I'm playing with.
db looks a little like this
3 bye bye
5 bye bye
I want to be able to dynamically count the hello's etc.
I know I can do it via
count.find(:all, :conditions => "tag = 'hello'")
but that only works if I know whats in the DB, is there a rails way of dynamically counting all of these rows?