Skip to content

Instantly share code, notes, and snippets.

@bgveenstra
Last active November 3, 2016 17:01
Show Gist options
  • Save bgveenstra/c51108a0e8721397a513d192317e15d6 to your computer and use it in GitHub Desktop.
Save bgveenstra/c51108a0e8721397a513d192317e15d6 to your computer and use it in GitHub Desktop.

Week 8 Learning Objectives

###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.

###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.

###Asset Pipeline

  • Explain benefits of using the Rails asset pipeline.
  • Describe how the asset pipeline works.
  • Require custom and third-party assets in Rails.

###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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment