dinaionenko/nested_list — pull request #2 by shhavel (2012-07-04 18:34:53+00:00)
Title: case insensitive search

For such cases

categories = [
{ id: 1679, name: "Cooking" },
{ id: 8140, name: "COOKING > BICOOKING" },
{ id: 8130, name: "COOKING > BIHOBS" }
]

One method changed only: find_item(tmp_name)

Or can use case insensitive search
if normal search gives no results

def find_item(tmp_name)
tmp_name = tmp_name.to_s.strip
@items.find do {|item| item.name == tmp_name } || @items.find do {|item| item.name.downcase == tmp_name.downcase }
end