Rails 4

Some missed errors, debug lines.