Search:

Search all manuals
Search this manual
Manual
Couchbase Client Library Ruby 1.0
Additional Resources
Community Wiki
Community Forums
Couchbase SDKs
Parent Section
Couchbase Client Library Ruby 1.0
Child Sections
Chapters

Chapter 2. Couchbase and Rails Tutorial

Table of Contents

2.1. Installing the Couchbase Client Library Dependencies
2.2. Example Rails Application (Squish)
2.3. Not your mother's ActiveRecord
2.3.1. Connecting to Couchbase
2.3.2. Defining an API
2.3.3. Defining a Couchbase Model
2.4. Conclusion

Now that you've installed Couchbase and have probably created a cluster of Couchbase servers, it is time to install the client library library, and start manipulating the data.

Here's a quick outline of what you'll learn in this article:

  1. Install the Ruby Couchbase Client (Gem) Dependencies Couchbase.

  2. Write a more advanced program using Rails to connect, save and update data in couchbase

This section assumes that you have installed Couchbase Ruby SDK and you have installed the Couchbase server on your development machine. We assume you have at least one instance of Couchbase Server and one data bucket established. If you need to set up these items in Couchbase Server, you can do with the Couchbase Administrative Console, or Couchbase Command-Line Interface (CLI), or the Couchbase REST-API. For information and instructions, see:

After you have your Couchbase Server set up and you have installed the Couchbase SDK, you can compile and run the following basic program.