Mongoid 3.0 embedded 1-N query for listing all embedded fields
===

Suppose an [Embedded 1-N][1] model like the following :

    class Band
      include Mongoid::Document
      field :group_name 

      embeds_many :albums
    end
    
    class Album
      include Mongoid::Document
      field :name
      field :sold

      embedded_in :band
    end

How can I get a full list of Album names for each Band ? 

I mean I have to get all bands at firsts, then for each band I'll get his name and I tried some variations of the following :


    Band.all.each do |band|
      band.albums.all.each do |album|
        album.name
      end
    end

but doesn't work, what am I missing ?

  [1]: http://mongoid.org/en/mongoid/docs/relations.html#embeds_many
  [2]: http://mongoid.org/en/mongoid/docs/relations.html#embeds_many
