Let's create a quick time-appropriate greeter application
Edit your code in app/application.rb
.
Create your application with the following conditions:
- If it's before noon, greet the user with "Good Morning!"
- If it's after noon, greet the user with "Good Afternoon!". Remember that getting the time may return results in 24 hour time! Anytime on or after 12 is the afternoon.
View Rack Responses Lab on Learn.co and start learning to code for free.