Cleaned up rails example a bit more