aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/README.rdoc
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2012-05-07 20:43:04 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2012-05-07 20:43:04 +0530
commit700dd0014b8c19651650923dff28912e7d3607b9 (patch)
tree70d72865188fc0841498cbb0d02b06b7d2e34148 /activemodel/README.rdoc
parent40b5d2823722fec2c2e02f3ed46f7f47f2205b73 (diff)
downloadrails-700dd0014b8c19651650923dff28912e7d3607b9.tar.gz
rails-700dd0014b8c19651650923dff28912e7d3607b9.tar.bz2
rails-700dd0014b8c19651650923dff28912e7d3607b9.zip
Revert "fixing active model links in readme"
This reverts commit c962680e1902d2c9474f0be8ba7b0b8ab361cae6. Reason: The links must be relative to work in both edge and stable api sites.
Diffstat (limited to 'activemodel/README.rdoc')
-rw-r--r--activemodel/README.rdoc20
1 files changed, 10 insertions, 10 deletions
diff --git a/activemodel/README.rdoc b/activemodel/README.rdoc
index 1485709991..0c7089598c 100644
--- a/activemodel/README.rdoc
+++ b/activemodel/README.rdoc
@@ -53,7 +53,7 @@ behavior out of the box:
person.clear_name
person.clear_age
- {Learn more}[http://api.rubyonrails.org/classes/ActiveModel/AttributeMethods.html]
+ {Learn more}[link:classes/ActiveModel/AttributeMethods.html]
* Callbacks for certain operations
@@ -71,7 +71,7 @@ behavior out of the box:
This generates +before_create+, +around_create+ and +after_create+
class methods that wrap your create method.
- {Learn more}[http://api.rubyonrails.org/classes/ActiveModel/Callbacks.html]
+ {Learn more}[link:classes/ActiveModel/Callbacks.html]
* Tracking value changes
@@ -88,7 +88,7 @@ behavior out of the box:
person.save
person.previous_changes # => {'name' => ['bob, 'robert']}
- {Learn more}[http://api.rubyonrails.org/classes/ActiveModel/Dirty.html]
+ {Learn more}[link:classes/ActiveModel/Dirty.html]
* Adding +errors+ interface to objects
@@ -116,7 +116,7 @@ behavior out of the box:
person.errors.full_messages
# => ["Name can not be nil"]
- {Learn more}[http://api.rubyonrails.org/classes/ActiveModel/Errors.html]
+ {Learn more}[link:classes/ActiveModel/Errors.html]
* Model name introspection
@@ -127,7 +127,7 @@ behavior out of the box:
NamedPerson.model_name # => "NamedPerson"
NamedPerson.model_name.human # => "Named person"
- {Learn more}[http://api.rubyonrails.org/ActiveModel/Naming.html]
+ {Learn more}[link:classes/ActiveModel/Naming.html]
* Observer support
@@ -145,7 +145,7 @@ behavior out of the box:
end
end
- {Learn more}[http://api.rubyonrails.org/classes/ActiveModel/Observer.html]
+ {Learn more}[link:classes/ActiveModel/Observer.html]
* Making objects serializable
@@ -157,7 +157,7 @@ behavior out of the box:
s.to_json # => "{\"name\":null}"
s.to_xml # => "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<serial-person...
- {Learn more}[http://api.rubyonrails.org/classes/ActiveModel/Serialization.html]
+ {Learn more}[link:classes/ActiveModel/Serialization.html]
* Internationalization (i18n) support
@@ -168,7 +168,7 @@ behavior out of the box:
Person.human_attribute_name('my_attribute')
# => "My attribute"
- {Learn more}[http://api.rubyonrails.org/classes/ActiveModel/Translation.html]
+ {Learn more}[link:classes/ActiveModel/Translation.html]
* Validation support
@@ -186,7 +186,7 @@ behavior out of the box:
person.first_name = 'zoolander'
person.valid? # => false
- {Learn more}[http://api.rubyonrails.org/classes/ActiveModel/Validations.html]
+ {Learn more}[link:classes/ActiveModel/Validations.html]
* Custom validators
@@ -208,7 +208,7 @@ behavior out of the box:
p.name = "Bob"
p.valid? # => true
- {Learn more}[http://api.rubyonrails.org/classes/ActiveModel/Validator.html]
+ {Learn more}[link:classes/ActiveModel/Validator.html]
== Download and installation