Skip to content

Instantly share code, notes, and snippets.

View matt-kragen's full-sized avatar

Matt Kragen matt-kragen

View GitHub Profile
@matt-kragen
matt-kragen / gist:0242386a7013e1099edcbf640e66e4ee
Created July 26, 2021 23:16 — forked from arjunvenkat/gist:1115bc41bf395a162084
Seeding a Rails database with a CSV file

How to seed a Rails database with a CSV file

1. Setup

First, Create a folder inside of lib called seeds

Put your CSV file example.csv into the lib/seeds folder. In the example below, the file is called real_estate_transactions.csv

Make sure you've created a resource with the appropriate columns to match your seed data. The names don't have to match up.

@matt-kragen
matt-kragen / b2_intermission_work.md
Last active July 3, 2021 22:24 — forked from mikedao/b2_intermission_work.md
B2 Intermission Work Submission

B2 Intermission Work

Answer these Check for Understanding questions as you work through the assignments.

HTML

What is HTML?

  • HTML stands for HyperText Markup Language. It is the language used by internaet browsers to display information on html documents.

What is an HTML element?

Checklist/Rubric

To make a copy of this rubric:

  1. Click the button in the upper right-hand corner that says Fork. This is now your copy of the document.
  2. To save your work, click the green button in the bottom right-hand corner. You can always come back and re-edit your gist.

Part I: Creating Directories and Files; Initializing Git and Pushing to GitHub

  • I named my directories correctly.