Add rails support