Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix formatting on README (take 5)

  • Loading branch information...
commit 83c319ec08c2e9c4ada73dd351f22c8098026b50 1 parent e715ffc
Mark McSpadden markmcspadden authored

Showing 1 changed file with 6 additions and 6 deletions. Show diff stats Hide diff stats

  1. +6 6 README.textile
12 README.textile
Source Rendered
@@ -8,21 +8,21 @@ The DonorsChoose::Data module match up the normalized data provided by DonorsCho
8 8
9 9 h2. Usage
10 10
11   -@@ruby
  11 +<pre>
12 12 project = DonorsChoose::Data::Project.first
13 13 project.donations
14 14 school = DonorsChoose::Data::School.last
15 15 school.teachers
16   -@@
  16 +</pre>
17 17
18 18
19 19 h3. Rails
20 20
21 21 If you'd like to use it in Rails, just add the following to your Gemfile:
22 22
23   -@@ruby
  23 +<pre>
24 24 gem 'donors_choose'
25   -@@
  25 +</pre>
26 26
27 27 h3. Stand alone
28 28
@@ -40,12 +40,12 @@ schema_search_path: public
40 40
41 41 Then, drop into irb, require the gem, and establish the db connection
42 42
43   -@@ruby
  43 +<pre>
44 44 terminal$ irb
45 45 irb(main):001:0> require 'rubygems'
46 46 irb(main):001:0> require 'donors_choose'
47 47 irb(main):001:0> DonorsChoose::Data.connect(YAML.load(File.read('database.yml')))
48 48 irb(main):001:0> DonorsChoose::Data::Project.first
49   -@@
  49 +</pre>
50 50
51 51

0 comments on commit 83c319e

Please sign in to comment.
Something went wrong with that request. Please try again.