ChapterÂ 8.Â XML and Multiple Representations: It all looks different now...
You canât please everyone all of the time. Or can you? So far weâve looked at how you can use Rails to quickly and easily develop web apps that perfectly fit one set of requirements. But what do you do when other requirements come along? What should you do if some people want basic web pages, others want a Google mashup, and yet more want your app available as an RSS feed? In this chapter youâll create multiple representations of the same basic data, giving you the maximum flexibility with minimum effort.
Climbing all over the world
Head First Climbers is a web site for mountaineers all over the world. Climbers report back from expeditions to record the locations and times of mountains they have climbed, and also to report dangerous features theyâve discovered, like rock slides and avalanches.
The information is obviously very important for the safety of other climbers, and many climbers use mobile phones and GPS receivers to read and record information straight from the rock face. Used in the right way, the system will save lives and yetâsomehowâthe web siteâs not getting a lot of traffic.
So why isnât it popular?
The application is very basic. Itâs simply a scaffolded version of this data structure: ...