Can I get all hash in array like this:
a = [[[{id => "1", com => "abcd"}],[{id => "2", com => "rty"},{id => "3", com => "mnq"},...]], "products"]
I want to get hash only like this :
b = [{id => "1", com => "abcd"},{id => "2", com => "rty"},{id => "3", com => "mnq"},...]
Please! tell me how to do that in ruby on rails :)