Downgraded to Rails 3 (from 4) because of Ruby version limitation on AD