used flat_map instead of map.flatten in /guides/rails_guides/helpers.rb