Adding resources error to controllers