![Page 1: Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 15 Introduction to Rails Programming the World Wide Web Fourth edition](https://reader035.vdocument.in/reader035/viewer/2022062618/55147249550346284e8b60e4/html5/thumbnails/1.jpg)
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley
Chapter 15Introduction to Rails
Programming the World Wide Web Fourth edition
By Robert W. Sebesta
![Page 2: Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 15 Introduction to Rails Programming the World Wide Web Fourth edition](https://reader035.vdocument.in/reader035/viewer/2022062618/55147249550346284e8b60e4/html5/thumbnails/2.jpg)
15-2Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley
Figure 15.1 The InstantRails application window
![Page 3: Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 15 Introduction to Rails Programming the World Wide Web Fourth edition](https://reader035.vdocument.in/reader035/viewer/2022062618/55147249550346284e8b60e4/html5/thumbnails/3.jpg)
15-3Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley
Figure 15.2 Directory structure for the rails1 application
![Page 4: Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 15 Introduction to Rails Programming the World Wide Web Fourth edition](https://reader035.vdocument.in/reader035/viewer/2022062618/55147249550346284e8b60e4/html5/thumbnails/4.jpg)
15-4Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley
Figure 15.3 The reponse from rails1
![Page 5: Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 15 Introduction to Rails Programming the World Wide Web Fourth edition](https://reader035.vdocument.in/reader035/viewer/2022062618/55147249550346284e8b60e4/html5/thumbnails/5.jpg)
15-5Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley
Figure 15.4 Rails actions for a simple request
![Page 6: Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 15 Introduction to Rails Programming the World Wide Web Fourth edition](https://reader035.vdocument.in/reader035/viewer/2022062618/55147249550346284e8b60e4/html5/thumbnails/6.jpg)
15-6Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley
Figure 15.5 The output of rails2 (time/timer)
![Page 7: Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 15 Introduction to Rails Programming the World Wide Web Fourth edition](https://reader035.vdocument.in/reader035/viewer/2022062618/55147249550346284e8b60e4/html5/thumbnails/7.jpg)
15-7Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley
Figure 15.6 The popcorn application initial display
![Page 8: Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 15 Introduction to Rails Programming the World Wide Web Fourth edition](https://reader035.vdocument.in/reader035/viewer/2022062618/55147249550346284e8b60e4/html5/thumbnails/8.jpg)
15-8Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley
Figure 15.7 A completed popcorn order form
![Page 9: Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 15 Introduction to Rails Programming the World Wide Web Fourth edition](https://reader035.vdocument.in/reader035/viewer/2022062618/55147249550346284e8b60e4/html5/thumbnails/9.jpg)
15-9Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley
Figure 15.8 The result template to the customer
![Page 10: Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 15 Introduction to Rails Programming the World Wide Web Fourth edition](https://reader035.vdocument.in/reader035/viewer/2022062618/55147249550346284e8b60e4/html5/thumbnails/10.jpg)
15-10Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley
Figure 15.9 Display of welcome.rhtml
![Page 11: Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 15 Introduction to Rails Programming the World Wide Web Fourth edition](https://reader035.vdocument.in/reader035/viewer/2022062618/55147249550346284e8b60e4/html5/thumbnails/11.jpg)
15-11Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley
Figure 15.10 A filled–in welcome template for cars
![Page 12: Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 15 Introduction to Rails Programming the World Wide Web Fourth edition](https://reader035.vdocument.in/reader035/viewer/2022062618/55147249550346284e8b60e4/html5/thumbnails/12.jpg)
15-12Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley
Figure 15.11 The result template for cars