exercises/handling-get-requests/app.rb
def quotes_by(author)
  quotes = QUOTES.select do |quote|
    comparable_author(quote[:author]) == comparable_author(author)
    # puts comparable_author(quote[:author])
  end
  quotes
end
##
# Searches quotes by author. Returns an array of quotes. Converts `author` to be
# lowercase letters and dashes.
#
# Examples:
#   * quotes_by("ada-lovelace") # => [ ... ]
#   * quotes_by("e-w-dijkstra") # => [ ... ]
Searches quotes by author. Returns an array of quotes. Converts `author` to be
lowercase letters and dashes.


Searches quotes by author . Returns an array of quotes . Converts ` author ` to be lowercase letters and dashes .
def quotes_by(author)
  quotes = QUOTES.select do |quote|
    comparable_author(quote[:author]) == comparable_author(author)
  end
  quotes
end
def quotes_by ( author ) quotes = QUOTES . select do | quote | comparable_author ( quote [ :author ] ) == comparable_author ( author ) end quotes end
Searches quotes by author.
Searches quotes by author .
# puts comparable_author(quote[:author])
author