Adjusting for Rails 4