Friday, 9 AMThe application needs to do lots of thingsSo what things do we need for the app?So how does Rails help us?Rails is for database-centric apps like the ticket sales systemYou create a new application with the rails commandSo what does this do?Now you need to add your own code to the default appRails apps always follow conventionsScaffolding is GENERATED codeSo what does the scaffold command do?There are no tables in the database yet!Create the table by running a migrationSweet! You saved your buddy’s job!So how can we change the labels?To modify an app, you need to dig into the app’s architectureThe 3 parts of your app: model, view, and controllerThe 3 types of code are kept in SEPARATE foldersThe files in the VIEW need to be editedEdit the HTML in the viewSunday, 8 AMThe application needs to store more information nowA migration is just a Ruby scriptRails can generate migrationsGive your migration a “smart” name, and Rails writes your code for youYou need to run your migration with rakeTimestamps tell rake which migrations to run, and in which orderBut changing the database isn’t enoughThe concert is a sell-out!Tools for your Rails Toolbox