broken version of rails self built post scaffold