- Pull together everything you've learned about Rails thus far
- Explore the form generation possibilities using Rails!
This homework assignment requires that you build upon your existing blog app (from the prior homework assignment)
-
Add an Authors model to your blog app with the following fields: first name and last name
-
Create an association between Authors and Posts where Authors can have many Posts
-
Add the ability to create, read (list), update and delete Authors (similar to what was done for Posts)
-
Update your app to allow users to associate an Author with a Post when both creating and editing new Posts - the form should have a select dropdown that allows users to choose an Author.
-
Use a partial to ensure that the view code for your form isn't duplicated.
Checkout the Rails documentation on Form Helpers: http://guides.rubyonrails.org/form_helpers.html