Building Dynamic Web 2.0 Websites with Ruby on Rails


Building Dynamic Web 2.0 Websites with Ruby on Rails
eBook: $20.99
Formats: PDF, PacktLib, ePub and Mobi formats
$12.59
save 40%!
Print + free eBook + free PacktLib access to the book: $55.98    Print cover: $34.99
$22.74
save 59%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Overview
Table of Contents
Author
Support
Sample Chapters
  • Create a complete Web 2.0 application with Ruby on Rails
  • Learn rapid web development
  • Enhance your user interface with AJAX

Book Details

Language : English
Paperback : 232 pages [ 235mm x 191mm ]
Release Date : March 2008
ISBN : 1847193412
ISBN 13 : 9781847193414
Author(s) : A P Rajshekhar
Topics and Technologies : All Books, Web Development, Open Source


Table of Contents

Preface
Chapter 1: Getting Started with Ruby and RoR
Chapter 2: Getting to Know Ruby and RoR
Chapter 3: TaleWiki—The Basic Setup
Chapter 4: Managing the Users
Chapter 5: Gathering User Comments
Chapter 6: Setting up the Template
Chapter 7: Tagging the Tales
Chapter 8: Enhancing User Experience with Ajax
Chapter 9: Developing the Interface for Administration
Chapter 10: Deploying the TaleWiki
Index
  • Chapter 1: Getting Started with Ruby and RoR
    • Ruby and RoR—The Next Level in Dynamic Web Development
      • Ruby
      • Ruby on Rails (RoR)
        • Philosophy
        • Features
    • Installing and Configuring Ruby and RoR
      • Manual Installation
        • Downloading and Installing Ruby
        • Updating Gem
        • Installing RoR
      • One-Click RoR Installation
        • Download and Unzip the Instant Rails
        • Configure Instant Rails Installation
    • Testing the Installation
      • Ruby
      • RoR
    • Summary
  • Chapter 2: Getting to Know Ruby and RoR
    • Ruby—the Basics
      • Classes, Attributes, Methods, and Objects
        • Classes
        • Attributes
        • Methods
        • Objects
        • Inheritance
        • Modules
      • Data Types
        • Number
        • Float
        • String
      • Blocks and Iterators
        • Blocks
        • Iterators
      • Exception Handling
      • Data Structures
        • Arrays
        • Hashes
    • RoR—Concepts and Components
      • RoR is a Ruby-Based Framework
      • RoR Implements MVC Pattern
        • Active Record
        • Action View
        • Action Controller
    • Hello World—the RoR Way
      • Setting up the Application Structure
      • Adding the First Controller Class
      • Defining the Action Method
      • Adding the View Template
      • Testing the Application
    • Summary
  • Chapter 3: TaleWiki—The Basic Setup
    • Understanding the Requirements
      • System Requirements
      • Module-Specific Requirements
        • Managing the Stories
      • Designing the Database
        • Understanding the Conventions
        • Designing the E-R Model
        • Defining the Schema
        • Creating the Tables
      • TaleWiki—Developing the Tale Management Module
        • Creating the Application Structure
        • Generating the Scaffolds
        • Customizing the Model
        • Customizing the Controller
        • Refining the View
      • Testing the Application
    • Summary
  • Chapter 4: Managing the Users
    • Understanding the Requirements
      • Managing the User
        • Managing Roles
      • Designing the Tables
        • Designing the E-R Model
        • Deriving the Schema
        • Creating the Tables
      • Developing the User Management
        • Developing the Role Management
        • Developing the User Management Functionality
      • Testing the Functionalities
    • Summary
  • Chapter 5: Gathering User Comments
    • Understanding the Requirements
      • Login Management
      • Managing the Comments
      • Designing the Database
        • Designing the E-R Model
        • Deriving the Schema
        • Creating the Tables
      • Developing the Login Management Module
        • Creating the Login Page
        • Implementing the Authenticate method
        • Setting up the Session
        • Applying Authorization
        • Tying Up the Loose Ends
      • Developing the Comment Management Module
        • Generating the Scaffold
        • Modifying the Model
        • Refining the View
        • Customizing the Controller
      • Testing the Module
    • Summary
  • Chapter 6: Setting up the Template
    • Understanding Migration
      • Generating Migration Classes
      • Editing the Generated Classes
      • Running the Migration
    • Customizing the Template
      • Defining the Layout
        • Customizing the Layout of the Login Page
        • Defining the Master Layout
      • Setting up the Navigation
      • Testing the Application
    • Summary
  • Chapter 7: Tagging the Tales
    • Understanding the Requirements
    • Developing the Tag management Module
      • Selecting a Plug-in for Tag Management
      • Installing the Plug-in
      • Setting up Tables Required by the Plug-in
      • Developing the Tag Management Module
        • Adding a Tag
        • Visualizing the Tag Cloud
        • Searching By Tag
        • Testing the Modifications
    • Summary
  • Chapter 8: Enhancing User Experience with Ajax
    • Understanding the Requirements
    • Implementing Ajax
      • What is Ajax?
      • How Ajax and RoR are Related
      • Implementing the Live Search
        • Specify the Location to Display the Result
        • Use the observe_field Helper
        • Modify the Action Method
      • Implementing the In-line Editing
        • Marking the Fields for In-line Editing
        • Set up the Controller
      • Testing the Modifications
    • Summary
  • Chapter 9: Developing the Interface for Administration
    • Understanding the Requirements
    • Implementing the Functionalities
      • Modification of the Deletion of Tales
      • Providing Access to All the Functionalities of the Comment Management Module
      • Implementing Auto-Complete for the User name
      • Implementing Search
      • Testing the Modifications
    • Summary
  • Chapter 10: Deploying the TaleWiki
    • Understanding the Production Environment
      • Development Mode
      • Test Mode
      • Production Mode
    • Changing to the Production Environment
      • Migrating to the Production Database
      • Configuring Mongrel
    • Points to Consider
    • Summary

A P Rajshekhar

 

A. P. Rajshekhar, Senior Developer with Vectorform, has worked on enterprise-level web applications and game development. His endeavors include development of a Learning Management System, a Supply Management Solution and Xbox-based games. He holds a Masters Degree in Computer Applications. He is a regular contributor to Devshed Portal on topics ranging from server-side development (JEE/.Net/RoR) to mobile (Symbian-based) development and game development (SDL and OpenGL) with a total readership of more than 1.4 million.


Contact A P Rajshekhar

Sorry, we don't have any reviews for this title yet.

Code Downloads

Download the code and support files for this book.


Submit Errata

Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.


Errata

- 1 submitted: last submission 11 Nov 2013

Errata type: Code | Page number: 119

"if logged_in_user flash[:note]="Welcome "+logged_in_user.name redirect_to(:controller=>'tale',:action => "list") else" should be: "if valid_user flash[:note]="Welcome "+logged_in_user.name redirect_to(:controller=>'tale',:action => "list") else"

 

Sample chapters

You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

Frequently bought together

Building Dynamic Web 2.0 Websites with Ruby on Rails +    TYPO3 4.3 Multimedia Cookbook =
50% Off
the second eBook
Price for both: $27.30

Buy both these recommended eBooks together and get 50% off the cheapest eBook.

What you will learn from this book

  • Installing, configuring, and testing both Ruby and RoR
  • Setting up the application and database
  • Managing users and roles for your website
  • Gathering and managing user comments
  • Setting up the template and generating migrations for your tables
  • Using plug-ins; adding and searching a tag
  • Enhancing usability with AJAX
  • Developing an administration interface
  • Deploying the application on a production server

Chapter 1 gives you an overview of the features of Ruby and RoR, as well as providing the various ways of installing, configuring, and testing both Ruby and RoR.

Chapter 2 introduces you to the basics of Ruby as well as the main concepts and components of RoR.

Chapter 3 makes you understand the design of tables according to the conventions of RoR, creation of scaffolds for tables, and changing the scaffolds according to the requirements.

Chapter 4 gives you details you about how to set up the User Management module for the website called TaleWiki.

Chapter 5 makes you familiar with the Login Management and Comment Management modules for TaleWiki.

Chapter 6 introduces you to the Migrations and Layouts involved in setting up the template for TaleWiki.

Chapter 7 describes the tagging functionality being implemented for enhanced search usability.

Chapter 8 provides you with the implementation of AJAX for TaleWiki.

Chapter 9 deals with the development of an interface for the administration.

Chapter 10 gives you the steps for deploying the website.

In Detail

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.
 
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.

Learn to create dynamic websites with Ruby on Rails.

Approach

This book is a practical guide to creating a complete Web 2.0 website with Ruby on Rails. In this book, each chapter adds a new feature to the site, adding new knowledge, skills, and techniques. You will learn about the features of RoR by adding those features to your website. You will also learn about Software Development Life Cycle (SDLC) as each chapter closely follows the SDLC starting from requirement gathering and ending with testing.

Who this book is for

This book is for anyone who has basic concepts of object-oriented programming as well as relational databases and wants to develop online applications using Ruby on Rails. Prior knowledge of Ruby or Rails is not expected.

Code Download and Errata
Packt Anytime, Anywhere
Register Books
Print Upgrades
eBook Downloads
Video Support
Contact Us
Awards Voting Nominations Previous Winners
Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Resources
Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software