Skip to content

Commit

Permalink
minor fixesin READMEs
Browse files Browse the repository at this point in the history
  • Loading branch information
vijaydev committed Dec 19, 2010
1 parent 4197fad commit 4038a6b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion actionmailer/README.rdoc
Expand Up @@ -59,7 +59,7 @@ generated would look like this:

Mr. david@loudthinking.com

In previous version of rails you would call <tt>create_method_name</tt> and
In previous version of Rails you would call <tt>create_method_name</tt> and
<tt>deliver_method_name</tt>. Rails 3.0 has a much simpler interface, you
simply call the method and optionally call +deliver+ on the return value.

Expand Down
2 changes: 1 addition & 1 deletion actionpack/README.rdoc
Expand Up @@ -262,7 +262,7 @@ methods:
layout "weblog/layout"

def index
@posts = Post.find(:all)
@posts = Post.all
end

def show
Expand Down
6 changes: 3 additions & 3 deletions activemodel/README.rdoc
Expand Up @@ -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 = {})
Expand All @@ -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]

Expand Down
2 changes: 1 addition & 1 deletion activeresource/README.rdoc
Expand Up @@ -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 # => <Person::xxx 'first' => 'Ryan' ...>
people.last # => <Person::xxx 'first' => 'Jim' ...>

Expand Down

0 comments on commit 4038a6b

Please sign in to comment.