@@ -56,7 +56,7 @@ behavior out of the box:
56
56
person.clear_name
57
57
person.clear_age
58
58
59
- {Learn more}[link: classes/ActiveModel/AttributeMethods.html]
59
+ {Learn more}[https://api.rubyonrails.org/ classes/ActiveModel/AttributeMethods.html]
60
60
61
61
* Callbacks for certain operations
62
62
@@ -74,7 +74,7 @@ behavior out of the box:
74
74
This generates +before_create+, +around_create+ and +after_create+
75
75
class methods that wrap your create method.
76
76
77
- {Learn more}[link: classes/ActiveModel/Callbacks.html]
77
+ {Learn more}[https://api.rubyonrails.org/ classes/ActiveModel/Callbacks.html]
78
78
79
79
* Tracking value changes
80
80
@@ -110,7 +110,7 @@ behavior out of the box:
110
110
person.save
111
111
person.previous_changes # => {'name' => ['bob, 'robert']}
112
112
113
- {Learn more}[link: classes/ActiveModel/Dirty.html]
113
+ {Learn more}[https://api.rubyonrails.org/ classes/ActiveModel/Dirty.html]
114
114
115
115
* Adding +errors+ interface to objects
116
116
@@ -141,7 +141,7 @@ behavior out of the box:
141
141
person.errors.full_messages
142
142
# => ["Name cannot be nil"]
143
143
144
- {Learn more}[link: classes/ActiveModel/Errors.html]
144
+ {Learn more}[https://api.rubyonrails.org/ classes/ActiveModel/Errors.html]
145
145
146
146
* Model name introspection
147
147
@@ -152,7 +152,7 @@ behavior out of the box:
152
152
NamedPerson.model_name.name # => "NamedPerson"
153
153
NamedPerson.model_name.human # => "Named person"
154
154
155
- {Learn more}[link: classes/ActiveModel/Naming.html]
155
+ {Learn more}[https://api.rubyonrails.org/ classes/ActiveModel/Naming.html]
156
156
157
157
* Making objects serializable
158
158
@@ -179,7 +179,7 @@ behavior out of the box:
179
179
s = SerialPerson.new
180
180
s.to_json # => "{\"name\":null}"
181
181
182
- {Learn more}[link: classes/ActiveModel/Serialization.html]
182
+ {Learn more}[https://api.rubyonrails.org/ classes/ActiveModel/Serialization.html]
183
183
184
184
* Internationalization (i18n) support
185
185
@@ -190,7 +190,7 @@ behavior out of the box:
190
190
Person.human_attribute_name('my_attribute')
191
191
# => "My attribute"
192
192
193
- {Learn more}[link: classes/ActiveModel/Translation.html]
193
+ {Learn more}[https://api.rubyonrails.org/ classes/ActiveModel/Translation.html]
194
194
195
195
* Validation support
196
196
@@ -208,7 +208,7 @@ behavior out of the box:
208
208
person.first_name = 'zoolander'
209
209
person.valid? # => false
210
210
211
- {Learn more}[link: classes/ActiveModel/Validations.html]
211
+ {Learn more}[https://api.rubyonrails.org/ classes/ActiveModel/Validations.html]
212
212
213
213
* Custom validators
214
214
@@ -230,7 +230,7 @@ behavior out of the box:
230
230
p.name = "Bob"
231
231
p.valid? # => true
232
232
233
- {Learn more}[link: classes/ActiveModel/Validator.html]
233
+ {Learn more}[https://api.rubyonrails.org/ classes/ActiveModel/Validator.html]
234
234
235
235
236
236
== Download and installation
0 commit comments