title: how to search array by string [in ruby]
body: <pre><code>def choose_menu
     input = get_input
     #binding.pry
     if input.to_i.between?(1, Recipes.all.length)
             ingredients_Are(input)
         # elsif input == &quot;Amy's Barbecue Chicken Salad&quot;
         #     puts 
         elsif input == &quot;exit&quot; 
             exit_menu
         else
             invalid_Choice
         end
         
     end
  </code></pre>
  <p>so i can search a array and pick a string with index number but would like to search by name. Like input &quot;Amy's BBQ&quot; and see the ingredients from that</p>