Category Archives: Programming

Quick and Dirty Ruby on RAILS (more to come)

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 [...]