concept this application in category rails

appears as: this application
Rails 3 in Action

This is an excerpt from Manning's book Rails 3 in Action.

You can add validations to your model to ensure that the data conforms to certain rules or that data for a certain field must be present or that a number you enter must be above a certain other number. You’re going to write your first code for this application and implement both of these things now.

The .ru extension for this file represents a Rack configuration file, also known as a Rackup file. In it, you call the run method, which needs an object that responds to call. When Rack receives a request to this application it will call the call method on the object passed to run, which will then generate and return a response back to the server. The object in this case is a lambda (or Proc) object, which automatically responds to call.