Switched over to Rails 4.

I didnt' realize when I started that I was using rails 3.2. So I was
having compatability issues between the guide and my code. So I switch
to rails 4, and copied the code over.