Building a Games Guide

Initial ERD
User create (CR in CRUD):
User show
User Update/Delete: (U, D in CRUD)
User index
Game create (CR in CRUD):
Game show, Tag create and Comment create
Game Update/Delete: (U, D in CRUD) and Tag create
Game index
Comment Update/Delete: (U, D in CRUD)
Type show
Type index
Tag show
User table
User relationships
Type table
Type relationships
Games table
Game Relationships
GameTag table
GameTag relationships
Tag table
Tag relationships
Comment table
Comment relationships
>> will = User.new
>> will.username = “willcarter”
>> will.email = “will@email.com”
>> will.password = “password”
>> will.save
Create/Edit a User
Delete a user
Signing up a new user
Logging in with first user
willcarter successfully logs in!
authenticate method, provided by bcrypt
password is encrypted in the database (password_digest)
dependent: destroy
dependent object destruction
join table now has user_id
remove user_id from tags
User/Tag many-to-many setup
Updated ERD based on the change
Game index
Game show
Game update
Tag index
All the views completed for each of the objects, shown in Visual Studio Code
User validations
Using valid? to check user before saving
checking for user object errors, displaying them
checking for user object errors, displaying them
Validation errors displayed in the view
Validation errors displayed in the view
Games Guide home
Family Games
Responsive testing
Responsive phone view
Overview of the Games Guide

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store