upgraded to rails 4

https://www.pivotaltracker.com/story/show/67572706
[Finishes #67572706]