Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix formatting on README (take 5)

  • Loading branch information...
commit 83c319ec08c2e9c4ada73dd351f22c8098026b50 1 parent e715ffc
Mark McSpadden markmcspadden authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 README.textile
12 README.textile
View
@@ -8,21 +8,21 @@ The DonorsChoose::Data module match up the normalized data provided by DonorsCho
h2. Usage
-@@ruby
+<pre>
project = DonorsChoose::Data::Project.first
project.donations
school = DonorsChoose::Data::School.last
school.teachers
-@@
+</pre>
h3. Rails
If you'd like to use it in Rails, just add the following to your Gemfile:
-@@ruby
+<pre>
gem 'donors_choose'
-@@
+</pre>
h3. Stand alone
@@ -40,12 +40,12 @@ schema_search_path: public
Then, drop into irb, require the gem, and establish the db connection
-@@ruby
+<pre>
terminal$ irb
irb(main):001:0> require 'rubygems'
irb(main):001:0> require 'donors_choose'
irb(main):001:0> DonorsChoose::Data.connect(YAML.load(File.read('database.yml')))
irb(main):001:0> DonorsChoose::Data::Project.first
-@@
+</pre>
Please sign in to comment.
Something went wrong with that request. Please try again.