BrentBarnes / 8-Bit-Flight-Booker

A Ruby-on-Rails app where users can book flights for multiple passengers
0 stars 0 forks source link

7. Adding dropdown menus #10

Closed BrentBarnes closed 2 years ago

BrentBarnes commented 2 years ago
  1. Add the four dropdown menus – a list of departure airports, arrival airports, number of passengers (1-4), and a date dropdown for the flight date. The date dropdown should only include dates that have existing flights. Don’t worry about restricting the contents of the airport dropdowns – you’d normally use JavaScript – so just allow the user to select any airport. See this SO post on formatting date in dropdown lists, this quickie SO post on selecting months/years and the Rails DateHelper API Docs for some help with creating Date selects.
BrentBarnes commented 2 years ago

Links to help: https://www.theodinproject.com/lessons/ruby-on-rails-advanced-forms https://guides.rubyonrails.org/form_helpers.html#choices-from-a-collection-of-arbitrary-objects

BrentBarnes commented 2 years ago