Using the database in the application

Let's modify the application so that, instead of listing environment variables, its lists rows in the database. First we need to download the files for the new application, then use following command:

$ af pull insideaf2
$ cd insideaf2

The structure of the two applications is the same; we'll look at the low-level changes one-by-one. We make changes to the two files we looked at before, app.rb and views/index.erb. We also need to change Gem file.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.133.159.223