updated d3_rails to work with Rails 4