Fixed Rails integration