RubyoffRails/Episode3 — pull request #3 by johnnygoodman (2012-05-08 00:27:22+00:00)
Title: Home (Eagle Only)

I cloned down the pre-Panda/Tiger/Eagle homework and had a chance to work on it today during a plane ride.

I will go back and push the Panda and Tiger, but please have a look at this.

Also, a question I ran into while working this:

Garden.all.each do |garden|
garden.class #=> Garden
end

but..

garden = Garden.where(category: "Berries")
garden.class #=> ActiveRecord::Relation

Why so? I wanted to query via where and then use the result to do a garden.plants thing, but no dice...