aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2015-01-12 08:29:43 +0100
committerXavier Noria <fxn@hashref.com>2015-01-12 08:29:43 +0100
commit970fe27b02fa7df9e01276861adebc131083958c (patch)
tree6d2c027503780d89684690d8fe7ebc34de6a6bd3
parent88308f4734129200c7c9bc49cfd0d4c0d46d405a (diff)
parent83dd559643e429f06091fea430486a612e6b4e96 (diff)
downloadrails-970fe27b02fa7df9e01276861adebc131083958c.tar.gz
rails-970fe27b02fa7df9e01276861adebc131083958c.tar.bz2
rails-970fe27b02fa7df9e01276861adebc131083958c.zip
Merge pull request #18460 from mechanicles/a-to-an-for-xml
Change 'a' to 'an' for 'XML' word [ci skip]
-rw-r--r--guides/source/active_model_basics.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/active_model_basics.md b/guides/source/active_model_basics.md
index 8dee1cc5ec..88de4e2d9f 100644
--- a/guides/source/active_model_basics.md
+++ b/guides/source/active_model_basics.md
@@ -396,7 +396,7 @@ class Person
end
```
-With the `to_xml` you have a XML representing the model.
+With the `to_xml` you have an XML representing the model.
```ruby
person = Person.new
@@ -405,7 +405,7 @@ person.name = "Bob"
person.to_xml # => "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<person>\n <name>Bob</name>\n</person>\n"
```
-From a XML string you define the attributes of the model.
+From an XML string you define the attributes of the model.
You need to have the `attributes=` method defined on your class:
```ruby