Skip to content

Instantly share code, notes, and snippets.

@bgveenstra
Last active January 27, 2017 15:01
Show Gist options
  • Save bgveenstra/9a1b733cf308260363bf45e1aff7da7f to your computer and use it in GitHub Desktop.
Save bgveenstra/9a1b733cf308260363bf45e1aff7da7f to your computer and use it in GitHub Desktop.

Week 7 Learning Objectives

###Active Record

  • Create a model that inherits from ActiveRecord class
  • CRUD data in the database using our model
  • Write a migration to define a database schema
  • Update our database schema with another migration

###Rails Views

  • Describe how layouts, view templates, and partial templates work together.
  • Recognize rails url helpers and path helpers.
  • Explain benefits of using Rails form helpers and link helpers.
  • Find and determine correct syntax for Rails form helpers and link helpers.

###Migrations

  • Add and remove columns from the database.
  • Alter an existing column.
  • Explain when it is okay to edit a migration and when it is okay to edit the schema.

###Error Handling and Validations

  • Use built-in ActiveRecord validation methods to validate database entries.
  • Display errors in the view using Rails flash messages.
  • Set breakpoints to check your assumptions.

###Associations

  • Describe how relational databases can be used to create associations between resources.
  • Create one to-many-model relationships in Rails.
  • Create many to-many-model relationships in Rails.

###Cookies and Sessions

  • Describe the request and response cycle's relationship to the stateless web.
  • Discuss and use an HTTP Cookie in a web application.
  • Differentiate between an HTTP Cookie and a Session.

###Rails Auth

  • Build routes, controllers, and views for user sign up, log in, and logout.
  • Implement a User model that securely stores hashed passwords with has_secure_password.
  • Compare and contrast authentication and authorization.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment