Skip to content

Instantly share code, notes, and snippets.

@bmikol
bmikol / dreamobjects_in_railstutorial.md
Last active September 4, 2016 02:40 — forked from derrek/carrier_wave_dreamobjects.md
Using DreamObjects in RailsTutorial.org

In the event that you are puttering through mhartl's fantastic RailsTutorial as I am and had the same "a ha" moment in Chapter 11 where you need to set up an Amazon S3 account to host your production environment's image uploads, I offer this quick gist (forked from derrek). The "a ha" moment?

Wondering if you can just use DreamObjects instead of S3, since you already use Dreamhost.

You'll be doing some changes with RailsTutorial's Listing 11.65, but it will stay mostly the same given the compatibility with the S3 API.

DreamObjects GUI

In the DreamObjects web GUI, if you don't already have a bucket, click "create bucket". Name the bucket. For this example the bucket is named testing-bucket. Click the link to "Change Settings" for the bucket and then toggle the "private" switch to "public".

@bmikol
bmikol / about.html
Last active January 24, 2017 18:34
CareerFoundry Ex. 1.3 & 1.4
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/about_styles.css">
<title>About Me</title>
<!--[if lt IE 9]>
<script src="dist/html5shiv.js"></script>
@bmikol
bmikol / about.html
Created January 24, 2017 18:37
CareerFoundry Ex. 1.5
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/about_styles.css">
<title>About Me</title>
<!--[if lt IE 9]>
<script src="dist/html5shiv.js"></script>
@bmikol
bmikol / about.html
Created January 24, 2017 19:53
CareerFoundry Ex. 1.6
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/about_styles.css">
<title>About Me</title>
<!--[if lt IE 9]>
<script src="dist/html5shiv.js"></script>
@bmikol
bmikol / about.html
Created January 29, 2017 00:43
CareerFoundry Ex. 1.7
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<link rel="stylesheet" href="css/styles.css">
<title>About Me</title>
<!--[if lt IE 9]>
<script src="dist/html5shiv.js"></script>
@bmikol
bmikol / index.html
Created January 30, 2017 02:21
CareerFoundry Ex. 1.8
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Hello World!</title>
@bmikol
bmikol / about.html
Last active January 31, 2017 22:29
CareerFoundry Ex 1.9
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<link rel="stylesheet" href="css/styles.css">
<title>About Me</title>
<!--[if lt IE 9]>
<script src="dist/html5shiv.js"></script>
@bmikol
bmikol / index.html
Last active January 31, 2017 23:16
CareerFoundry Ex 1.10
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Hello World!</title>
@bmikol
bmikol / index.html
Created February 1, 2017 03:16
CareerFoundry Ex 1.11 Bonus
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Calculate!</title>
@bmikol
bmikol / index.html
Created February 3, 2017 23:18
CareerFoundry Ex 2.1
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Hello World!</title>