working with Rails 4