Permalink
Browse files

Maybe the mail actually works! That'd be super sweet.

  • Loading branch information...
1 parent ff94910 commit c64f7aa7adcf84196e995f8c9552da457d8ae122 @chadoh committed May 3, 2010
Showing with 57 additions and 36 deletions.
  1. +3 −2 Gemfile
  2. +36 −30 Gemfile.lock
  3. +16 −2 controls.rb
  4. +1 −1 views/language_assistance.haml
  5. +1 −1 views/styles.sass
View
@@ -2,7 +2,8 @@ source "http://rubygems.org"
gem "sinatra"
gem "rack"
gem "haml"
-gem "pony"
gem "crack"
gem "rack-flash"
-gem "bluecloth"
+gem "RedCloth"
+gem "shotgun"
+gem 'pony'
View
@@ -1,53 +1,59 @@
---
+hash: 184b12f5b5a6427569409544bd14978b6ba3f5fd
+sources:
+- Rubygems:
+ uri: http://rubygems.org
+specs:
+- RedCloth:
+ version: 4.2.3
+- crack:
+ version: 0.1.7
+- haml:
+ version: 2.2.24
+- mime-types:
+ version: "1.16"
+- tmail:
+ version: 1.2.7.1
+- pony:
+ version: 0.9.1
+- rack:
+ version: 1.1.0
+- rack-flash:
+ version: 0.1.1
+- shotgun:
+ version: "0.6"
+- sinatra:
+ version: "1.0"
dependencies:
- pony:
+ sinatra:
+ version: ">= 0"
group:
- :default
+ rack:
version: ">= 0"
- bluecloth:
group:
- :default
- version: ">= 0"
haml:
+ version: ">= 0"
group:
- :default
- version: ">= 0"
crack:
+ version: ">= 0"
group:
- :default
+ rack-flash:
version: ">= 0"
- rack:
group:
- :default
+ RedCloth:
version: ">= 0"
- sinatra:
group:
- :default
+ shotgun:
version: ">= 0"
- rack-flash:
group:
- :default
+ pony:
version: ">= 0"
-specs:
-- bluecloth:
- version: 2.0.7
-- crack:
- version: 0.1.7
-- haml:
- version: 2.2.24
-- mime-types:
- version: "1.16"
-- tmail:
- version: 1.2.7.1
-- pony:
- version: 0.9.1
-- rack:
- version: 1.1.0
-- rack-flash:
- version: 0.1.1
-- sinatra:
- version: "1.0"
-hash: c2dbe84341c9c9af47777e048e7b599ce9b2338f
-sources:
-- Rubygems:
- uri: http://rubygems.org
+ group:
+ - :default
View
@@ -16,8 +16,8 @@
require 'partials'
require 'open-uri'
require 'crack'
-require 'pony'
require 'rack-flash'
+require 'pony'
enable :sessions
@@ -101,7 +101,21 @@ def method_missing(name)
end
post "/contact" do
- Pony.mail(:to => 'chad.ostrowski@gmail.com', :from => 'chad.ostrowski@gmail.com', :subject => 'Email submitted on Lisli.net', :message => 'Hello!')
+ Pony.mail(
+ :from => 'chad.ostrowski@gmail.com',
+ :to => 'chad.ostrowski@gmail.com',
+ :subject => 'Mail from Lisli.net!',
+ :body => 'Woooo!',
+ :via => :smtp,
+ :via_options => {
+ :address => 'smtp.sendgrid.net',
+ :port => '25',
+ :authentication => :plain,
+ :user_name => ENV['SENDGRID_USERNAME'],
+ :password => ENV['SENDGRID_PASSWORD'],
+ :domain => ENV['SENDGRID_DOMAIN']
+ }
+ )
flash.now[:notice] = "Thanks for your message! I'll get back to you soon."
haml :contact
@@ -7,7 +7,7 @@
%img(style="cursor: pointer; width: 400px; height: 327px;" src="/images/books-737655.png" alt="Tools (books) of the trade")
%br
%br
- :markdown
+ :textile
What is language assistance? Do you have trouble remembering when to use an apostrophe? Know the difference between an n-dash and m-dash? What about the difference between a colon and a semicolon? How are your spelling and consistency? Do you really have time to learn how to be a meticulous grammar snob? Probably not. That’s where language assistance comes in.
With degrees in English and Spanish, an eye for detail, and a variety of writing, copy editing, proofreading, and translation (English-Spanish) experience, I would love to assist you in tailoring your language (on fliers, brochures, Web sites, newsletters, and the like) into tight, professionally written copy. Fret no longer about misplaced punctuation, misspellings, and poor word choice, because you have found someone to help!
View
@@ -13,7 +13,7 @@
-webkit-border-bottom-left-radius= !tab_radius
border-bottom-right-radius= !tab_radius
border-bottom-left-radius= !tab_radius
- border= 1px solid #ccc
+ border: 1px solid #ccc
border-top: 0
&:active
border: 0

0 comments on commit c64f7aa

Please sign in to comment.