Permalink
Browse files

Fix formatting on README (take 5)

  • Loading branch information...
1 parent e715ffc commit 83c319ec08c2e9c4ada73dd351f22c8098026b50 @markmcspadden markmcspadden committed May 26, 2011
Showing with 6 additions and 6 deletions.
  1. +6 −6 README.textile
View
12 README.textile
@@ -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>

0 comments on commit 83c319e

Please sign in to comment.