Permalink
Browse files

readme fix

  • Loading branch information...
1 parent e8a0ed9 commit d75ce50ffa1adcf71f3f17bf700c3fe7d8043067 Jason committed May 23, 2011
Showing with 13 additions and 13 deletions.
  1. +13 −13 README.md
View
@@ -25,19 +25,19 @@ And create a model:
And use that model:
-m = MyModel4.new(:last_name => "lname", :user_id => 5) # creates an in-memory instance
-m.first_name = 'fname' # all set_fields are given accessors
-m.save # saves to memcache/base
-
-m2 = MyModel4.create(:last_name => "lname2", :first_name => 'fname', :user_id => 6) # auto create (.new, .save shortcut)
-
-fnames = MyModel4.all(:first_name => "fname") # returns array of model instances that share the same first name
- #=> [#<MyModel4:0x10133cd98 @last_name="lname", @new_instance=false, @first_name="fname", @user_id=5>,
- #=> #<MyModel4:0x10133c4d8 @last_name="lname2", @new_instance=false, @first_name="fname", @user_id=6>]
-
-m.delete # delete the first one
-
-MyModel4.all(:first_name => "fname") #=> [#<MyModel4:0x101264560 @last_name="lname2", @new_instance=false, @first_name="fname", @user_id=6>]
+ m = MyModel4.new(:last_name => "lname", :user_id => 5) # creates an in-memory instance
+ m.first_name = 'fname' # all set_fields are given accessors
+ m.save # saves to memcache/base
+
+ m2 = MyModel4.create(:last_name => "lname2", :first_name => 'fname', :user_id => 6) # auto create (.new, .save shortcut)
+
+ fnames = MyModel4.all(:first_name => "fname") # returns array of model instances that share the same first name
+ #=> [#<MyModel4:0x10133cd98 @last_name="lname", @new_instance=false, @first_name="fname", @user_id=5>,
+ #=> #<MyModel4:0x10133c4d8 @last_name="lname2", @new_instance=false, @first_name="fname", @user_id=6>]
+
+ m.delete # delete the first one
+
+ MyModel4.all(:first_name => "fname") #=> [#<MyModel4:0x101264560 @last_name="lname2", @new_instance=false, @first_name="fname", @user_id=6>]
Thanks
------------

0 comments on commit d75ce50

Please sign in to comment.