Scaffolds gem and adds extracted code