From f02af58b7c23d196d8e62de48ac13ce8460fded8 Mon Sep 17 00:00:00 2001 From: Jeff Casimir Date: Wed, 27 Jul 2011 23:55:45 -0500 Subject: [PATCH] More Readme errors. --- Readme.markdown | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Readme.markdown b/Readme.markdown index a45d9a9..09ab3f5 100644 --- a/Readme.markdown +++ b/Readme.markdown @@ -106,7 +106,7 @@ ruby-1.9.2-p290 :003 > ad.created_at NoMethodError: undefined method `created_at' for # ``` -## Up an Running +## Up and Running ### Setup @@ -135,7 +135,7 @@ rails generate draper:model Article Open the decorator model (ex: `app/decorators/article_decorator.rb`) and add normal instance methods. To access the wrapped source object, use the `model` method: ```ruby -class Article < Draper::Base +class ArticleDecorator < Draper::Base decorates :article def author_name @@ -144,13 +144,12 @@ class Article < Draper::Base end ``` - ### Using Existing Helpers You probably want to make use of Rails helpers and those defined in your application. Use the `helpers` or `h` method proxy: ```ruby -class Article < Draper::Base +class ArticleDecorator < Draper::Base decorates :article def published_at