- [Instructor] If you are a premium member of the lynda.com training library you will have access to the exercise files that are used throughout this title. The exercise files for this title are arranged by chapter and by movie and you can find the exercise files that correspond to the movie that you're watching by first looking for the chapter number and the movie number. In order to make use of the exercise files, you'll want to first make sure that you have Ruby, RubyGems and Sinatra installed. Once you have everything installed, then you can copy the folder of exercise files into your web directory or another convenient location.
It's always a good idea to make a copy, so that you can still have the original to refer back to if you make changes. On my Mac I'm going to put them in my Sites folder in my user directory. I will option drag the folder, so that it creates a new copy. Now your files will be the same as mine at the start of the movie and you'll be able to work right along with me. Don't forget you can also use the exercise files to check your work as you go along. If you're a monthly or annual subscriber to lynda.com, you won't have the exercise files that accompany this tutorial but you can follow along with me.
Everything that's in the exercise files we will create during the tutorials. So, as long as you continue to work along with me, your files will exactly mirror what is in the exercise files. Remember that you can pause the video or rewind if you need more time to copy something down.
- Installing Sinatra
- Launching the server
- Defining routes
- Using route patterns and parameters
- Redirecting requests
- Rendering dynamic templates
- Using partial templates and layouts
- Defining custom helpers