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
- Manual Installation
- Testing the Installation
- Ruby
- RoR
- Summary
- Ruby and RoR—The Next Level in Dynamic Web Development
- 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
- Classes, Attributes, Methods, and Objects
- 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
- Ruby—the Basics
- 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
- Understanding the Requirements
- 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
- Managing the User
- Summary
- Understanding the Requirements
- 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
- Understanding the Requirements
- 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
- Defining the Layout
- Summary
- Understanding Migration
- 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
- Understanding the Production Environment



