updated to a rails engine