Have something to say?

Ready to be published? LXer is read by around 350,000 individuals each month, and is an excellent place for you to publish your ideas, thoughts, reviews, complaints, etc. Do you have something to say to the Linux community?

Ruby on Rails 2.0 Tutorial, Part 2

The second part of a Ruby on Rails 2.0 tutorial. Ruby on Rails 2.0 changes the way Rails uses scaffolding. This has made many existing Rails tutorials obsolete. This part covers customization of the Model and the View and gets the scaffolded application built in part one looking like something you could present to a client

The second part of a Ruby on Rails 2.0 tutorial. Ruby on Rails 2.0 changes the way Rails uses scaffolding. This has made many existing Rails tutorials obsolete. This part covers customization of the Model and the View and gets the scaffolded application built in part one looking like something you could present to a client

Ruby on Rails is an MVC framework for creating web based applications. Rails 2.0 was released in December 2007 and the changes have made many previous tutorials obsolete. This multi-part series teaches how to get a scaffolded application up and running and customized to your liking. It should provide enough help to programmers learning Ruby on Rails back on track.

Part 1 covered installation of Ruby on Rails 2.0 on debian Linux system and automatic generation of a scaffolded application that uses MySQL as a back end.

Part 2 covers changes to the Model and View that include data validation, rendering of partial forms and use of style sheets for a nicer page layout.