Book Image

Ruby on Rails Web Mashup Projects

Book Image

Ruby on Rails Web Mashup Projects

Overview of this book

Table of Contents (14 chapters)
Ruby on Rails Web Mashup Projects
Credits
About the Author
Acknowledgements
About the Reviewer
Preface

What we will be doing


The following section describes the steps we will be taking to create the mashup. The basic steps are:

  1. 1. Create a Rails application

  2. 2. Set up the database

  3. 3. Create the Payment and Claim Item scaffolds

  4. 4. Modify Payment and create its subclasses

  5. 5. Create the Google API access library

  6. 6. Create the Manager class and its controller and views

  7. 7. Create the expense claims parsing rake script

  8. 8. Create the mass payment rake script

  9. 9. Modify the Payment and Claim Item controllers

Creating a Rails application

We begin this mashup as before by creating the usual Rails application.

$rails Chapter8

This will create a new Ruby on Rails application. We will not be using most of its interface but will be running the rake scripts located in the $RAILS_ROOT/lib/tasks folder. Running the scripts should be automated at a regular interval.

Setting up the database

Next, we will set up the database for this chapter with a data migration script. I assume that you have already created a database and...