Quick and Dirty Rails
1. Create rails: “rails recipe_book”
2. Create databasei in mysql
3. Create table in database — PLURAL, e.g. “recipes” NOT “recipe”
4. EDIT ruby database so it points to database — “config/database.yml”
5. Create model of table: go to apps directory “ruby script\generate model TABLE_NAME (i.e. recipe)” [SINGULAR]
6. Create controller of table: go to apps dire “ruby script\generate controller TABLE_NAME (i.e. recipe)” [SINGULAR]
7. Edit controller so it creates scaffold: “scaffold :TABLE_NAME” [SINGULAR]
** all done!**
8. You can edit all elements of CRUD — just edit the apps/view
9. LIST: appls/view –> create list.rhtml, and edit it.
** relational tables
10. If there is a higher group that it belongs to do the following
11. Create table in database — PLURAL, e.g. “groups”
12. EDIT FIRST table so it has one entry — TABLE_NAME_id (singluar!)
13. Create model of table and controller table
14. EDIT model of first table so it says “belongs to :TABLE2″ (SINGULAR)
15. EDIT model of second table so it says “has_many : TABLE1″ (PLURAL)

