> ## Documentation Index
> Fetch the complete documentation index at: https://www.jetify.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Ruby on Rails

> This example demonstrates how to setup a simple Rails application. It makes use of the Ruby Plugin, and installs SQLite to use as a database.

[Example Repo](https://github.com/jetify-com/devbox/tree/main/examples/stacks/rails)

## How To Run[​](#how-to-run "Direct link to How To Run")

Run `devbox shell` to install rails and prepare the project.

Once the shell starts, you can start the rails app by running:

```bash theme={null}
cd blog
bin/rails server
```

## How to Recreate this Example[​](#how-to-recreate-this-example "Direct link to How to Recreate this Example")

1. Create a new Devbox project with `devbox init`

2. Add the packages using

   ```bash theme={null}
   devbox add ruby_3_1 bundler nodejs-19_x yarn sqlite
   ```

3. Start a devbox shell, and install the rails CLI with `gem install rails`

4. Create your Rails app by running the following in your Devbox Shell

   ```bash theme={null}
   rails new blog
   ```

[Edit this page](https://github.com/jetify-com/docs/tree/main/docs/devbox/devbox-examples/stacks/rails/index.mdx)
