Fixing dependency issue with rails