Add rails engine

Added Rails engine