# Browsing a database in RadRails [edit]

This page explains how to browse a database in RadRails.

## Introduction

Once you set up a database in your Rails project, you can use the RadRails Data Perspective to browse your database.

## Instructions

To browse your database in RadRails:

1. Set up your database:
   1. In the Rails Navigator View, go to your project and expand the config folder.
   2. Open the database.yml file in your Editor.
   3. Follow the instructions in the comments section of the database.yml file to set up your database and save your changes to the file.
2. Browse your database in the Data Perspective
   1. Click the to switch to the Data Perspective.
   2. Click the Data Navigator View tab and expand your project folder.
   3. Double-click your database in the Data Navigator to create a database connection.

   RadRails will display the database tables in the Data Navigator. You can expand a table to display its columns, and you can also double-click a table to perform a "Select *" query on that table. The Results View will display the results for that query.

   ## Related Topics

   - Getting started with RadRails
   - Starting a new RadRails project
   - Importing an existing project into RadRails
   - Building an application in RadRails
   - Running a unit test on RadRails
   - Creating and running a WEBrick server
   - Executing SQL statements in RadRails
   - Using a Mongrel server

Retrieved from "http://aptana.com/docs/index.php/Browsing_a_database_in_RadRails"

Categories: AptanaHelp | RadRails