- Start the web server by running
bin/server. - Navigate to your live application preview.
- As you work, remember to navigate to
/gitand commit often as you work. - When you feel confident that your app matches the target, run
rails grade. Runningrails gradeto get feedback is a terrible feedback loop.
Here is your target
The starting point of this app has four different forms which take input from users, some of which run through the Google Maps API and the DarkSky API, be sure to update your enviroment credientals.
YOUR JOB: Debug all 4 forms.
Debugging checklist:
- READ the error message. Extract as much useful information from it as possible.
- If there's no error message, find another way to give yourself feedback; make the invisible visible.
- Use the server log.
- Print things; in this new world, that means use embedded Ruby tags (
<%= %>) in the view templates. We can't use thepmethod anymore since we aren't writing command line programs anymore.
- If all else fails — the error message isn't helpful, or there isn't one and you can't spot the issue visually — delete the offending code (or comment it out), and re-type the R→C→A→V from scratch. Hopefully you've been making lots of git commits, so there's no fear in doing so.