Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## Sinatra Homework
- Extend the demo sinatra app you created this morning to have a contact_us page.
- Create a 'contact us' page that takes in the name and email of a user and a message and returns these details back to them (No need to save the details of the message, we will look at persistance in a web application tomorrow).
- 1. Create a new route for 'contact us'.
- 2. Add a link to the nav for the route.
- 3. Route should take the user to a contact us page with a form to take in name, email and message.
- 4. Submitted form should return a thank you for contacting us page with the repeating the details.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement