<commit_before>[![Build Status](https://secure.travis-ci.org/stormpath/stormpath-rails.png)](http://travis-ci.org/stormpath/stormpath-rails)
[![Code Climate](https://codeclimate.com/github/stormpath/stormpath-rails.png)](https://codeclimate.com/github/stormpath/stormpath-rails)
# Stormpath Rails Gem

Stormpath is the first easy, secure user management and authentication service for developers.
This is the Rails gem to ease integration of its features with any Rails-based application.

## Assumptions

The bulk of this guide assumes that you are creating a new Rails application from scratch and want to user Stormpath for user management out of the box. If you have an existing application into which you want to integrate Stormpath, and that application already has the notion of a user in it, skip to the "[Sign Up For A Stormpath Account](#signup)" section.

## Setup

### Create A New Rails Application

1. Navigate to where you'd like to start your new app.

2. Use Rails to create a new application and cd into it:
  
    ```
    rails new myApp
    cd myApp
    ```

3. Initialize your application's database and create a "User" object

    ```
    rake db:create
    rails generate scaffold User username:string email:string given_name:string middle_name:string surname:string password:string
    rake db:migrate
    ```

4. Delete the public HTML file (public/index.html) and modify your "routes.rb" file (app/config) to point to your user controller:

    ```
    root :to => 'users#index'
    ```<commit_msg>Clarification on read me step for Rails 3.2/4 discrepancy<commit_after>[![Build Status](https://secure.travis-ci.org/stormpath/stormpath-rails.png)](http://travis-ci.org/stormpath/stormpath-rails)
[![Code Climate](https://codeclimate.com/github/stormpath/stormpath-rails.png)](https://codeclimate.com/github/stormpath/stormpath-rails)
# Stormpath Rails Gem

Stormpath is the first easy, secure user management and authentication service for developers.
This is the Rails gem to ease integration of its features with any Rails-based application.

## Assumptions

The bulk of this guide assumes that you are creating a new Rails application from scratch and want to user Stormpath for user management out of the box. If you have an existing application into which you want to integrate Stormpath, and that application already has the notion of a user in it, skip to the "[Sign Up For A Stormpath Account](#signup)" section.

## Setup

### Create A New Rails Application

1. Navigate to where you'd like to start your new app.

2. Use Rails to create a new application and cd into it:
  
    ```
    rails new myApp
    cd myApp
    ```

3. Initialize your application's database and create a "User" object

    ```
    rake db:create
    rails generate scaffold User username:string email:string given_name:string middle_name:string surname:string password:<PASSWORD>
    rake db:migrate
    ```

4. Delete the public HTML file (public/index.html) if it exists and modify your "routes.rb" file (app/config) to point to your user controller:

    ```
    root :to => 'users#index'
    ```
{'fraction_non_alphanumeric': 0.08620135091669347, 'fraction_numerical': 0.003538115149565777, 'mean_word_length': 4.132013201320132, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 6, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1384479', 'n_tokens_mistral': 881, 'n_tokens_neox': 832, 'n_words': 369}