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:
parent
3adb05565c
commit
83dd559643
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue