1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Change 'a' to 'an' for 'XML' word [ci skip]

This commit is contained in:
Santosh Wadghule 2015-01-12 10:03:44 +05:30
parent 3adb05565c
commit 83dd559643

View file

@ -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