used flat_map instead of map.flatten in /guides/rails_guides/helpers.rb
Merge pull request #11744 from Karunakar/minor_fix_on_flatmap

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