set dependency to railties from 3.1 to 3.1+

Changing the railties dependency so that we can use it in a rails 4 project.