Question1. Set up the MySQL tools on your computer as described in section 6 above.
ANS
When I have installed RUBY on rails on my laptop I have set up MySQl along with Ruby and Rails installation which shows on our blog under the name Installation of Ruby on Rails part.
Question2. Rails will setup a new application directory for each of your Web application projects. Get Instant Rails (Windows) or Locomotive (MacOS) running on your machine. Both packages install Ruby, Rails, a Web server or one called ‘Mongrel’ or another small Ruby Web server called ‘WEBrick’, and MySQL “inside a bubble” as I call it so that others parts of your system are not modified (Similarly ZOPE does with installing its own Web server and Python versions).
ANS:
This task also has been done on this blog and it is also under the same Installation of Ruby on Rails part on our blog.
Question3. Once Rails is running you at http://localhost:3000, you need to configure database access. Connection to the database is specified in the config/database.yml file.
ANS:
Actually when we create any model in Ruby on Rails it is possible to access a file named database.yml under folder named config, and that screen shot is given below and we can configure the database access by using that file.

Question4. Generate the Passenger model by creating the MySQL database and ‘passengers’ table from the information above.
ANS:
In this section we will create a table named passenger1 in which we will create some fields and it will work like a Taxi Booking Service centre in which customer can book the taxi service for their traveling. This table will have various different fields like Name, Destination Address, Origin Address, Time, Date and the like. We will have a better look on the screen shots which I have taken during the creation of this table by using Ruby over Rails with the description, so that everything should get clear that how it works and how it represents the final page regarding the taxi booking information. Screen shots related to the creation of this table is given below.


Above screen shot shows I have used Rails command to create taxi application and process of this system.

In the above screen you can see I have used three commands first needs to be created a scaffold in which I created model named passenger1having different attributes like name, contact no, destination – origin address etc. after that to check models I used by command named rake db: migrate to check whether my application is talking to database or not and then after that I run the server using command named ruby script/server to run my applications.

The above screenshot shows that the model is running properly and we are on the right track for the taxi booking system
In the above screen shot shows tat the filling of different attributes by the operator in order to book the taxi for my self.

The above given screen shot displays the successful creation of fields entered by me related to customer’s journey as an example.

The above screen shot shows the successful creation of taxi booking model named passenger2 and is ready to enter the details of other passenger.
Question5. Further work on understanding MySQL under Rails by David Mertz:a. See “Fast-track your Web apps with Ruby on Rails” at
http://www-128.ibm.com/developerworks/linux/library/l-rubyrails/
ANS:
As asked in the above question I followed the given link in the question. I have found some very useful information for the ruby on rails along with the really good information of description of role of model, view and controller on it. This link also gives quick and good understanding of coding in the environment of ruby on rails. It is very helpful to understanding the exercises and workshops. This link is very useful to understand the ruby and rails for the new learns with ruby and rails.
b. The “Rolling with Ruby on Rails” series and “Cookbook recipes by Curt Hibbs and others beginning at
http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.htmlANS:
The link by Curt Hibbs is very useful to understand the topic on the Ruby and Rails it shows that how to install ruby and rails from introduction t the installation of ruby on rails in our system along with the MySQL installation which help me a lot to making this assignment and learning ruby and rails quite good as a new learner.