Smart Factory Rails Class work