Skip to content

Commit

Permalink
Fix formatting on README (take 5)
Browse files Browse the repository at this point in the history
  • Loading branch information
markmcspadden committed May 26, 2011
1 parent e715ffc commit 83c319e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.textile
Expand Up @@ -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

Expand All @@ -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.