Rails4

Fixes #4