beyond-z/beyondz-playground — pull request #8 by scott-knight (2014-07-28 17:25:10+00:00)
Title: Rails upgraded to 4.1.4, added US States table, and added reCaptcha to enrollment form

Upgrade Rails from 4.1.0 to Rails 4.1.4.
Added gems for pagination.
Updated the Gemfile to be more readable.
Refactored the database.yml
Created US States table for association with Users:
1. Migration to create the table.
2. Migration to associate users to the table.
Added CSS for reCaptcha.
Added CSS for the Login page to separate the fields - it was clustered.
Added reCaptcha variables to the secrets.yml
Updated Devise rememberable options.
Updated the Enrollment view to include reCaptcha and to use the new US States table.
Removed the us_states array from the Enrollment controller.
Refactored the Enrollment controller:
1. User params were set behind Private to be more secure.
2. The Create method was refactored to be more secure and less redundant.
3. The new user is no longer being created until validations are passed.
4. Validations were updated to be more accurate.
5. Added reCaptcha as a validation to the enrollment form to prevent spamming.