<commit_before>![Rails from scratch](https://guides.nanobox.io/assets/quickstart-icons/rails.png)

# Rails from scratch
Run a local rails app with nothing but Nanobox.

<a href="https://nanobox.io/download"><img src="https://guides.nanobox.io/assets/quickstart-icons/download.png" /></a>

# Installation and Setup
1. Clone the nanobox repo
      `git clone https://github.com/nanobox-quickstarts/nanobox-rails.git`
2. Don't forget to cd into the new directory
        `cd nanobox-rails`
3. Add a local DNS record
        `nanobox dns add local rails.dev`
4. Don't forget to rake create a database
        `nanobox run rake db:create`
5. Run the app
        `nanobox run rails s`

Now you can visit your app at <a href="http://rails.dev:3000" target="\_blank">rails.dev:3000</a>

# Explore
With Nanobox, you don't have to have anything installed on your machine to run app specific commands. To open a nanobox console type `nanobox run` into your console and hit enter.

Now you can run commands like `ruby -v` and `gem list` to check the ruby version and see a list of installed gems respectively.<commit_msg>Reword second 'Don't forget'<commit_after>![Rails from scratch](https://guides.nanobox.io/assets/quickstart-icons/rails.png)

# Rails from scratch
Run a local rails app with nothing but Nanobox.

<a href="https://nanobox.io/download"><img src="https://guides.nanobox.io/assets/quickstart-icons/download.png" /></a>

# Installation and Setup
1. Clone the nanobox repo
      `git clone https://github.com/nanobox-quickstarts/nanobox-rails.git`
2. Don't forget to cd into the new directory
        `cd nanobox-rails`
3. Add a local DNS record
        `nanobox dns add local rails.dev`
4. Run rake to create a database
        `nanobox run rake db:create`
5. Run the app
        `nanobox run rails s`

Now you can visit your app at <a href="http://rails.dev:3000" target="\_blank">rails.dev:3000</a>

# Explore
With Nanobox, you don't have to have anything installed on your machine to run app specific commands. To open a nanobox console type `nanobox run` into your console and hit enter.

Now you can run commands like `ruby -v` and `gem list` to check the ruby version and see a list of installed gems respectively.
{'fraction_non_alphanumeric': 0.10071942446043165, 'fraction_numerical': 0.011690647482014389, 'mean_word_length': 3.723991507430998, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '581509', 'n_tokens_mistral': 742, 'n_tokens_neox': 662, 'n_words': 277}