PacktLib: Ruby on Rails Enterprise Application Development: Plan, Program, Extend

Ruby on Rails Enterprise Application Development

Credits

About the Authors

Preface

Introduction

Why this Book?

Why Develop?

Why a Client/Server based Web Application?

But why Ruby on Rails?

Ruby on Rails in Detail

Summary

The Initial Problem

A Normal Day in the Office

Examining the Data

Data Objects

Separating the Data

Naming Conventions

Back to the Data

Review the Result

How Good is the Source Data?

Tracking Who does What

Data Validation

Rory's Data

Summary

Laying the Foundations

Supporting Rails Development

Addressing the Challenges

Setting Up a Rails Stack

Installing a Custom Rails Stack

Setting Up a Team Server

Summary

Working with Rails

The World According to Rails

Setting Up a New Rails Application

Connecting Rails to a Database

ActiveRecord, Migrations, and Models

The Scaffold

Completing the Database

Models in Detail

Putting the Project into Context

Summary

Building the User Interface

Controllers and Views: A Recap

Creating a Simple Controller and Its Views

Adding a Controller for Companies

Advanced View Techniques

C*UD (Create, Update, Delete)

Editing Multiple Models Simultaneously

Fleshing Out Companies and Addresses

Summary

Into Production

An Application Ready for Production

The Application Server

Setting up the Server

Rory's Production Installation

Errors in Production

Back Up Rails

Summary

Improving the User Experience

Easy Access to the Application

Users Need to be Able to Find Items Easily

Adding AJAX to the Mix

Show and Hide Company Address Using link_to_remote

Help!

Keep Talking to Users

Summary

Extending the Application

Dealing with User Feedback

Adding a Search Facility

Handling Errors

Adding an Authentication System

Adding Simple Task Tracking

Uploading and Attaching Files

Summary

Advanced Deployment

Deployment with Capistrano

Troubleshooting Deployment

Housekeeping

Optimizing a Rails Application

Summary

Down the Track

Going off the Rails

SQL

Business Processes

The Final Destination

Running Your Own Gem Server

Running Your Own Gem Server

Running Your Own Gem Server

Index