-
- Created empty PostGreSQL Database
-
- Generated controllers/views, supporting all views and have access to DB
-
- Set root_path to 'pages#welcome' -app/config/routes
-
- Added Devise to manage session state & login
-
- Created User table
-
- DB migration
-
- Generated Views for Devise
-
- Create Flavors Model (DB Table)
-
- Create Flavors Controller -app/controllers/flavors_controller.rb
-
- Create Flavors Views -app/views/flavors
-
- Create index, show, new, edit, create, update, destroy methods -app/controllers/flavors_controller.rb
-
- Define flavor_params -app/controllers/flavors_controller.rb
-
- Create form file -app/views/flavors/_form.html.erb
-
- Render Flavor form file in index, edit, new, and show action -app/views/flavors
-
Rails DB Migrate & Bounce Server
-
Style Pages
-
- Add build method on current_user so each time a new instance of Flavor class is created it belongs to a user -app/controllers/flavors_controller.rb
-
- Add db associations on Flavor & User Model (foreign_key) -app/models/flavor.rb && app/models/user.rb
-
- Make Flavors dependent on User to eliminate orphaned data and ensure it's deleted if User is deleted -app/models/user.rb
-
- DB migration
-
- Bounce Server
-
- Create Pages controller -app/controllers/pages_controller.rb
-
- Create Home, Cherry, and Grape views -app/controllers/pages_controller.rb
-
- Create Home, Cherry, and Grape methods to allow creation of views -app/controllers/pages_controller.rb
-
- Define new class instances in Pages controller to make new isntances of Vote class accessible to voting views -app/controllers/pages_controller.rb
-
- git add/commit/push to heroku master
jmichaeln5 / grape_or_cherry Goto Github PK
View Code? Open in Web Editor NEWA voting app- sign up/login and vote either grape or cherry. Which will you choose?
Home Page: https://grape-or-cherry.herokuapp.com/