Rails integration