Rails 4 base code.