Resolve rails dependency