This is important since now we can access an application's controller, whereas before we could only change an application's views.
Let's walk through the workflow of a particular AJAX challenge.
- Include the JS file in your layout.erb view
- Check out your app/views
- Modify your app/controllers. Since we are expecting information in our JS file from an HTTP route, we need to remove redirect'/' and put in a JSON generator