Prev | Current Page 151 | Next

David Berube

"Practical Reporting with Ruby and Rails"

0



Went Public
93


Built PR
72


Built MC
54


Built DC
13



The exact appearance of the XML is controlled by two optional parameters passed to
the to_xml method: :root=>'player_performance_report' and :skip_types=>true. The first,
:root, sets the name of the root node to be easier to read; otherwise, it would simply be
???hash,??? which isn??™t very descriptive. The second removes the type attributes, such as
type="array" for the element; those attributes clutter up the XML without
adding much information.
Other optional parameters to to_xml are :include, which lets you specify exactly
which elements to include, and :except, which lets you specifically exclude elements,
such as password fields.


Pages:
139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163
Namioty Mazury i interesująca cena Szkoły policealne fryzjer w warszawie need cash fast bad credit perfumy fm świnoujście noclegi