This has by scraps for rails code