before_action with only smelly code = refactor msg to notice communication in flash render 'xyz' edit_todo_path(t) add _path to anything edit submits to update Todo.find(params[:id]) Flash messaging- running hash... new submits to create action params.require(hash) Stroog parameters & params instance variable resources
Routes validates presence & errrors.any? blank data in db messes with db integrity Update doesnt hit db, happens in memory. But not for destroy Todo.new (capital coz class name), primary key, .new vs .create vs .update Rollback schema and drop table and reset Schema and migrations Naming conventions About and help page
This README would normally document whatever steps are necessary to get the application up and running.
Things you may want to cover:
-
Ruby version
-
System dependencies
-
Configuration
-
Database creation
-
Database initialization
-
How to run the test suite
-
Services (job queues, cache servers, search engines, etc.)
-
Deployment instructions
-
...