I'm trying to write some tools to help me clean up my data, first stop
is trying to find empty attributes in my Resort model...the following
resorts = 
Resort.all.each do |resort|
puts resort.name + "has no height entered"
I'm not using the array in this example, but it gives an idea. I'd like
to rewrite this so that I pass in an attribute name and it gives me back
the resorts where that attribute name is nil or whatever. I can't seem
to do it, I thought it'd start like this..
code to do it
How do I write that first line so I can pass in an attribute?