Rails 4

Closes #1