Skip to content

Instantly share code, notes, and snippets.

#Simple Authentication with Bcrypt

This tutorial is for adding authentication to a vanilla Ruby on Rails app using Bcrypt and has_secure_password.

The steps below are based on Ryan Bates's approach from Railscast #250 Authentication from Scratch (revised).

You can see the final source code here: repo. I began with a stock rails app using rails new gif_vault

##Steps

Classroom Culture

WDI Day 1 - Reflection Scenarios

  1. You're sitting with your classmates in the common area, working on homework. You're stuck on the very first step, and you really want to figure it out yourself. Everyone else seems to be getting it, though, and there's still more to do.

  2. It was difficult to stay focused this morning. A personal problem is on your mind. Plus, one of your classmates came in late and asked you to tell them the workshop instructions. Then, two people at your table were talking to each other while the instructor tried to explain something to the whole group.

  3. Someone in the GA community used language or imagery that you think is inappropriate, insensitive, or even offensive. You're not sure whether GA staff knows it happened, or if the person who brought it up even realizes it was an issue.

  4. You are working on a group project, and your team can't seem to agree on what's important. Morale is suffering, and you feel like the team isn't making enough progress.

Week 4B Learning Objectives

Big O

  • Articulate a set of steps to determine Big O complexity.
  • List the Big O complexities of some commonly-used patterns and algorithms.
  • Estimate the time or space efficiency of an algorithm using Big O notation.

Binary Search

Week 7 Learning Objectives

###Intro Ruby

  • List Ruby data types.
  • Articulate strategies to learn new programming languages and frameworks.
  • Run Ruby code in an interactive Command Line Interface or from a file.

###Ruby Methods

  • Write conditionals, loops, and methods in Ruby.
  • Apply methods in ruby to solve problems.
@bgveenstra
bgveenstra / authentication_with_bcrypt_in_rails_4.md
Created October 4, 2016 06:39 — forked from eerwitt/authentication_with_bcrypt_in_rails_4.md
Simple Authentication in Rail 4 Using Bcrypt

#Simple Authentication with Bcrypt

This tutorial is for adding authentication to a vanilla Ruby on Rails app using Bcrypt and has_secure_password.

The steps below are based on Ryan Bates's approach from Railscast #250 Authentication from Scratch (revised).

You can see the final source code here: repo. I began with a stock rails app using rails new gif_vault

##Steps

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.

Week 10 Learning Objectives

###Trees

  • Explain the relationship between graphs, trees, and binary search trees.
  • Draw a balanced binary search tree from some given data.
  • Use binary search trees in answering interview style challenge questions.

###Breadth First Search

  • Describe and draw breadth-first tree traversal.
  • Pseudocode breadth-first search.
@bgveenstra
bgveenstra / week1-learning-objectives.md
Created November 3, 2016 16:35
Week 1 Learning Objectives

Week 1 Learning Objectives

###The Internet

  • Explain at a high level how the Internet transmits data.
  • Distinguish between the Internet and the World Wide Web.
  • Understand why HTML CSS and JavaScript work together so well.
  • Articulate what an API is.

###HTML & CSS

WDI 31 Learning Objectives

Week 1 Learning Objectives

The Internet

  • Explain at a high level how the Internet transmits data.
  • Distinguish between the Internet and the World Wide Web.

Week 1 Learning Objectives

Developers will be able to...

###Command Line

  • Navigate the file system from the command line.
  • Create, move, copy, and delete files or directories from the command line.
  • Research unfamiliar bash commands and options with --help, man, and/or online resources.
  • Describe the uses of the sudo and chmod commands.