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


As this project is a mashup plugin, normally you would already have an existing Rails application you want to add this to. However for the purpose of this chapter, I show how the mashup can be created on a fresh project. This is what we will be doing:

  • Create a new Rails project

  • Install the Rails plugins (GeoKit and YM4R/GM) that will use the various mashup APIs

  • Configure the database access and create the database

  • Create the standard scaffolding

  • Populate the longitude and latitude of the kiosks

  • Create the find feature

  • Display the found kiosk locations on Google Maps

Creating a new Rails project

This is the easiest part:

$rails Chapter2

This will create a new blank Rails project.

Installing the Rails plugins that will use the various mashup APIs

In this mashup plugin we'll need to use GeoKit, a Ruby geocoding library created by Bill Eisenhauer and Andre Lewis, and YM4R/GM—a Ruby Google Maps mapping API created by Guilhem Vellut. Install them according to the instructions given...