Your homework for today is to practice! You're gonna create an app with one model Book
.
-
Walk back through today lesson. Create a new Rails app called
books-app
. Instead ofArtist
you'll create anAuthor
model. -
Come up with 4 fields that you want your author table to have (e.g.- publisher, genre, birthdate, first_name, last_name, pen_name)
-
You'll need to add your own data for the authors.
Author | |
---|---|
first_name | string |
last_name | string |
number_of_books | integer |
author_birthdate | datetime |
- User can see all the authors in
index.html.erb
file.