adding rails factor gem