Book Image

Building Dynamic Web 2.0 Websites with Ruby on Rails

By : A P Rajshekhar
Book Image

Building Dynamic Web 2.0 Websites with Ruby on Rails

By: A P Rajshekhar

Overview of this book

<p>Ruby on Rails is an open-source web application framework ideally suited to building business applications; accelerating and simplifying the creation of database-driven websites. Often shortened to Rails or RoR, it provides a stack of tools to rapidly build web applications based on the Model-View-Controller design pattern.<br />&nbsp;<br />This book is a tutorial for creating a complete website with Ruby on Rails. It will teach you to develop database-backed web applications according to the Model-View-Controller pattern. It will take you on a joy ride right from installation to a complete dynamic website. All the applications discussed in this book will help you add exciting features to your website. This book will show you how to assemble RoR's features and leverage its power to design, develop, and deploy a fully featured website. Each chapter adds a new feature to the site, adding new knowledge, skills, and techniques.</p>
Table of Contents (16 chapters)
Building Dynamic Web 2.0 Websites with Ruby on Rails
Credits
About the Author
About the Reviewer
Preface
Index

Chapter 2. Getting to Know Ruby and RoR

In the last chapter, the focus was on the specifications and installation of the 'tools', if I continue using the analogy of 'tools.' By the same analogy—until the user understands which control provides what functionality—the tool cannot be used to its maximum potential. So it is necessary to understand which library provides what functionality and which component maps to what specification for each and every tool. Ruby and RoR is no exception to this.

RoR builds upon the functionalities provided by Ruby. Thus, by understanding how Ruby works, you can know about the building blocks of RoR. That in turn, will help you to have a clearer picture of how the different components of RoR fit into the bigger picture. The chapter will first introduce you to the basic concepts of Ruby. Then it will move on to the basic concepts and components of RoR. Finally, the chapter will be completed with an example of RoR, which can be considered as 'Hello World' in RoR...