New in Rails: Resource Scaffold Generator

1 · Ariejan de Vroom · Jan. 23, 2007, midnight
Oh boy! Rails 1.2 is all about resources. A product entry in your application is not just a rendered HTML page, but it “is” data. Rails 1.2 allows you to add a .xml extension to your url to retrieve the same product information in XML format! Now, this all sounds hard. Two ways of rendering the same action depending on an extension. Generating XML code for every model in your database. No way you want to spend time developing all that stuff. Well, Rails wouldn’t be Rails if there weren’t a gener...