Skip to content

Instantly share code, notes, and snippets.

View rwarbelow's full-sized avatar
💭
hungry

Rachel W rwarbelow

💭
hungry
View GitHub Profile

Cross-Instructor Observation

  • Instructor:
  • Date:
  • Cohort:
  • Module:
  • Observed by:

Things to Watch

@rwarbelow
rwarbelow / mail_example.rb
Last active July 20, 2016 18:13
Mail Gem Example
require 'mail'
mail = Mail.new do
from '[email protected]'
to '[email protected]'
subject 'Hello!'
body 'This is an email that was sent using Ruby.'
end
mail.delivery_method :sendmail

Right now, your Job Tracker app is available to use by anyone. Wouldn't it be nice if we could make it so that only logged-in users could access the site?

Today, you'll attempt to implement authentication in your Job Tracker app. This challenge is not meant to give you step-by-step instructions for implementing authentication. Instead, you'll be prompted with places to start, things to cosider, and resources to reference, but you'll want to consider the implications of your choices along the way.

Before you start, read this article which talks about the difference between authentication and authorization. We'll focus most of this challenge on authentication, although you will see bits of authorization.

The purpose of the challenge is to figure out the moving pieces of authentication, not to TDD the authentication process. Therefore, don't worry about writing tests.

As you go through this challenge, push to try to get as many pieces figu

Use what you know about Ruby, Rails, MVC, sessions, etc. to create the following pieces of functionality:

  1. A user who already exists in the database can log in using a username/password combination that they enter in a form. They should know that they are logged in because something like "Welcome, Rachel!" should appear at the top of every page they visit.

  2. A user who already exists in the database and is already logged in should be able to log out. They should know that they are logged out because their welcome message will no longer appear at the top of every page they visit.

  3. Users should have many jobs, and a job should belong to a user. Therefore, when a user visits any jobs listing, they should only see jobs associated with them. They should not be able to see, edit, or delete any jobs that are not associated with their account.

  4. A user who does not exist in the database should be able to create an account through a form that gathers any necessary user information. Once they create an a

@rwarbelow
rwarbelow / funnythings.txt
Created August 15, 2018 00:37
Funny things
https://web.archive.org/web/20150221125906/http://www.sewingandembroiderywarehouse.com/embtrb.htm
https://www.facebook.com/uniladmag/videos/5192506594105691/
http://www.cakewrecks.com/home/2009/5/4/happy-falker-satherhood.html
  1. Sign in to GitHub and go to https://github.com/new
  2. Type in the name of your project for repository name
  3. Select the checkmark for "Initialize this repository with a README"
  4. Click "Create Repository"
  5. Click the button "Create new file"
  6. In the box that says "Name your file..." enter index.html
  7. Paste your HTML into the large text box area
  8. Click "Commit new file"
  9. Click "Create new file" again
  10. In the box that says "Name your file..." enter styles.css (or whatever you called your stylesheet file)
@rwarbelow
rwarbelow / mod_0_setup.md
Last active March 24, 2019 16:32
Turing School Module 0 Technical Setup Instructions

Mod 0 Tech Setup

Complete the following steps before Mod 0 in order to get the tools you'll need on your machine. In this setup, we'll go over the following topics:

  1. New to Mac?
  2. Installing a Text Editor
  3. Installing Xcode
  4. Installing Homebrew
  5. Installing Git
  6. Configuring Git
@rwarbelow
rwarbelow / Practice.md
Last active January 18, 2019 22:31 — forked from timomitchel/Practice.md
For Rachel to Fork

This is random text

More

  • than
  • before
  • Howdy
@rwarbelow
rwarbelow / command_prompt.md
Last active June 2, 2023 04:21
Changing Your Command Prompt

First, make sure you're at the home directory by typing cd.

Next, type nano .bash_profile. Copy and paste this into the window:

# get current branch in git repo
function parse_git_branch() {
  BRANCH=`git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'`
  if [ ! "${BRANCH}" == "" ]
 then
@rwarbelow
rwarbelow / mod_0_markdown_practice.md
Last active April 15, 2019 16:36
Mod 0 Markdown Practice

Markdown Practice

Take a look at the Mod 0 Tech Setup instructions. Next, click the Raw button and compare the raw markdown to how the gist displays.

Look for the following elements, and under each bullet point, paste an example of the markdown that creates each.

  • Headings of various sizes
  • Links
  • Bold text
  • Auto-numbered lists