Re: Hash Issue when looping through

14 views
Skip to first unread message

Anthony Brushwood

unread,
Sep 6, 2012, 6:59:11 AM9/6/12
to rubyonra...@googlegroups.com
This is solved! By adding flatten to the last loop...

    sub_area_option_item[:items][:option_item].flatten.each do |option_item|
      option_item[:name] <- THIS IS WHERE MY CODE BREAKS
    end
Reply all
Reply to author
Forward
0 new messages