- Fork, clone, bundle
- rails s
- Navigate to root path (http://localhost:3000/)
- Where do params come from?
- Where do params "go"?
- What is the general format of params?
- How do you find out exactly which params are coming into your app?
- Click submit. Currently the form is not passing params. How do we change this?
- Inspect element on the input field
- Check out another project's form (in production or running locally)
- Inspect element on the input field. What was missing from the previous form?
- Open the rails project in a text editor and change the input field to add the missing element.
- ONLY make changes where indicated in each matching view
- Submit the form. If your params match the expected params, success! Commit and move to the next exercise.
- Follow the same format as before. What project have you made where you used nested params? (Think
form_for [@thing, @other_thing] do...
)
- Extrapolate on the pattern in the previous example. Hint: How would you access that hash value?
- As this involves checkbox, be sure to check out a previous project's checkbox (in production or running locally)
- This one is tricky. Play around with some ideas you might have, then check out the suggested resources.
- We have been creating hashes this whole time, but this one is a little special. Try a few things, and extrapolate a bit from the array exercise. Also check out the suggested resources if you are stuck.