converted to Rails engine