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 7. Tagging the Tales

In the previous chapter, we have tackled one aspect of usability (making the site usable for the users), the user interface. Now let us look at the next aspect of usability, which is providing the user with enhanced search within the published tales. Enhancing the search facility is a part of search usability. There are many techniques to provide users with the enhanced search facility. The most used and 'sought after' technique is Tagging and Tag Clouds. In this chapter, we will be implementing Tagging and Tag Clouds for Talewiki.

The DRY principle is the corner stone of RoR. We have seen this principle in play only in the validation of data. In this chapter, we will be applying the DRY principle using plug-ins to implement the Tagging system. First, we will look at what tagging means and which plug-in are suitable for implementing it. Then we will install the plug-in and set up the tables required by the plug-in. The next step will be implementing the system...