From 4038a6bc0f9006fac32943040733c734cc8afe14 Mon Sep 17 00:00:00 2001 From: Vijay Dev Date: Mon, 20 Dec 2010 01:07:33 +0530 Subject: [PATCH] minor fixesin READMEs --- actionmailer/README.rdoc | 2 +- actionpack/README.rdoc | 2 +- activemodel/README.rdoc | 6 +++--- activeresource/README.rdoc | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/actionmailer/README.rdoc b/actionmailer/README.rdoc index dfb696eb55..b346bd9e79 100644 --- a/actionmailer/README.rdoc +++ b/actionmailer/README.rdoc @@ -59,7 +59,7 @@ generated would look like this: Mr. david@loudthinking.com -In previous version of rails you would call create_method_name and +In previous version of Rails you would call create_method_name and deliver_method_name. Rails 3.0 has a much simpler interface, you simply call the method and optionally call +deliver+ on the return value. diff --git a/actionpack/README.rdoc b/actionpack/README.rdoc index 0ad33cfe26..a28d78f688 100644 --- a/actionpack/README.rdoc +++ b/actionpack/README.rdoc @@ -262,7 +262,7 @@ methods: layout "weblog/layout" def index - @posts = Post.find(:all) + @posts = Post.all end def show diff --git a/activemodel/README.rdoc b/activemodel/README.rdoc index 9b96bfaba7..f3d4bf8fe3 100644 --- a/activemodel/README.rdoc +++ b/activemodel/README.rdoc @@ -84,7 +84,7 @@ modules: attr_reader :errors def validate! - errors.add(:name, "can not be nil") if name == nil + errors.add(:name, "can not be nil") if name.nil? end def ErrorsPerson.human_attribute_name(attr, options = {}) @@ -94,10 +94,10 @@ modules: end person.errors.full_messages - # => ["Name Can not be nil"] + # => ["Name can not be nil"] person.errors.full_messages - # => ["Name Can not be nil"] + # => ["Name can not be nil"] {Learn more}[link:classes/ActiveModel/Errors.html] diff --git a/activeresource/README.rdoc b/activeresource/README.rdoc index 0aaad1d097..afa25e1676 100644 --- a/activeresource/README.rdoc +++ b/activeresource/README.rdoc @@ -95,7 +95,7 @@ Collections can also be requested in a similar fashion # # for GET http://api.people.com:3000/people.xml # - people = Person.find(:all) + people = Person.all people.first # => 'Ryan' ...> people.last # => 'Jim' ...> -- GitLab